pulitzer 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c74d8c90df202b0b5fd6d8752e06c517effa9516
4
- data.tar.gz: fcdea1d1a61e41ea5e873a8d5f393f5d803cc877
3
+ metadata.gz: c1836812fba8dc0bf89dc3f4aecda3c2a3749a63
4
+ data.tar.gz: 4d7988405112c4120e7f4be35c8797ae1720212e
5
5
  SHA512:
6
- metadata.gz: 77e818bcfd400d8914e38a4c3235f89994c9845b3fa800f65aabcb877f446b28117ed5b818f7de35c355fbf4db3e178d45b3e7fcbca27b17c7863c3f667f63b4
7
- data.tar.gz: bec1fae611488b140f9a5a77338842ad96fae816fd5a9a347db3fdc1ca1b5ee0708230ed50e0d8e875a285e47711fd5f455e81e9248f92a37640171a36bd273f
6
+ metadata.gz: fa23fdec24fd36dc898d81a209b9d53f6bdc19bbc785904aa6d5de3c8104de43d8240e685b70a5a38ef7a86efc80d09b304b2ad4d623be71a32c3323ff6877c4
7
+ data.tar.gz: 1b70a9d58962ada1d332de6fc9952355ff054c03a8df1f25944df72d99d5b202c8e3cb75eb013c4a8f6b97abff61a40da4fabee185e516847e1e2334da6cb5e2
@@ -5,7 +5,7 @@ module Pulitzer
5
5
  has_many :versions
6
6
  belongs_to :post_type
7
7
  delegate :post_type_content_element_types, :allow_free_form?, to: :post_type
8
- delegate :content_elements, :post_tags, to: :active_version, allow_nil: true
8
+ delegate :content_elements, :post_tags, :has_label_type, :has_label, to: :active_version, allow_nil: true
9
9
  friendly_id :title, use: [:slugged, :finders]
10
10
  after_create :create_preview_version
11
11
 
@@ -16,7 +16,9 @@ module Pulitzer
16
16
  TAG_MODELS = ["Pulitzer::Tag"] + Pulitzer.tagging_models
17
17
 
18
18
  def content_element(label)
19
- self.content_elements.find_by(label: label)
19
+ if content_elements
20
+ self.content_elements.find_by(label: label)
21
+ end
20
22
  end
21
23
 
22
24
  def should_generate_new_friendly_id?
@@ -5,13 +5,26 @@ module Pulitzer
5
5
  has_many :content_elements, dependent: :destroy
6
6
  has_many :post_tags, dependent: :destroy
7
7
  belongs_to :post
8
-
8
+ scope :tagged_with_type, ->(label_type){includes(:post_tags).where(pulitzer_post_tags: {label_type: label_type}).references(:pulitzer_post_tags)}
9
+ scope :tagged_with_label, ->(label){includes(:post_tags).where(pulitzer_post_tags:{label_type: label.class.name, label_id: label.id}).references(:pulitzer_post_tags)}
9
10
  attr_accessor :processed_element_count
10
11
 
11
12
  delegate :allow_free_form?, :title, :slug, to: :post
12
13
 
13
14
  validates :post_id, :status, presence: true
14
15
 
16
+ def has_label_type(label_type)
17
+ post_tags.where(label_type: label_type).any?
18
+ end
19
+
20
+ def has_label(label)
21
+ post_tags.where(label_type: label.class.name, label_id: label.id).any?
22
+ end
23
+
24
+ def post_tags_for(label_type)
25
+ post_tags.where(label_type: label_type)
26
+ end
27
+
15
28
  def content_element(label)
16
29
  self.content_elements.find_by(label: label)
17
30
  end
@@ -1,3 +1,3 @@
1
1
  module Pulitzer
2
- VERSION = '0.3.5'
2
+ VERSION = '0.3.6'
3
3
  end
Binary file
@@ -21728,3 +21728,2239 @@ Pulitzer::CloneVersion !!!
21728
21728
   (0.0ms) commit transaction
21729
21729
   (0.0ms) begin transaction
21730
21730
   (0.1ms) rollback transaction
21731
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
21732
+  (1.2ms) DELETE FROM "pulitzer_content_element_types";
21733
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
21734
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types';
21735
+  (1.0ms) DELETE FROM "pulitzer_content_elements";
21736
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
21737
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements';
21738
+  (0.7ms) DELETE FROM "pulitzer_post_type_content_element_types";
21739
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
21740
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_type_content_element_types';
21741
+  (1.1ms) DELETE FROM "pulitzer_post_types";
21742
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
21743
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';
21744
+  (0.9ms) DELETE FROM "pulitzer_posts";
21745
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
21746
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts';
21747
+  (0.8ms) DELETE FROM "pulitzer_tags";
21748
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
21749
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_tags';
21750
+  (0.8ms) DELETE FROM "pulitzer_versions";
21751
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
21752
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions';
21753
+  (0.8ms) DELETE FROM "search_locations";
21754
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
21755
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';
21756
+  (0.7ms) DELETE FROM "pulitzer_post_tags";
21757
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
21758
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags';
21759
+  (0.0ms) begin transaction
21760
+  (0.0ms) commit transaction
21761
+  (0.0ms) begin transaction
21762
+  (0.1ms) SAVEPOINT active_record_1
21763
+ SQL (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"]]
21764
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21765
+  (0.1ms) SAVEPOINT active_record_1
21766
+ Pulitzer::Post Exists (0.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"]]
21767
+ 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"]]
21768
+ 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"]]
21769
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21770
+  (0.1ms) SAVEPOINT active_record_1
21771
+ 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"]]
21772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21773
+  (0.0ms) SAVEPOINT active_record_1
21774
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1
21775
+ 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"]]
21776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21777
+  (0.0ms) SAVEPOINT active_record_1
21778
+ SQL (0.1ms) 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"]]
21779
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21780
+  (0.0ms) SAVEPOINT active_record_1
21781
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1
21782
+ 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"]]
21783
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21784
+  (0.0ms) SAVEPOINT active_record_1
21785
+ SQL (0.1ms) 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"]]
21786
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21787
+  (0.0ms) SAVEPOINT active_record_1
21788
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1
21789
+ 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"]]
21790
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21791
+  (0.0ms) SAVEPOINT active_record_1
21792
+ SQL (0.1ms) 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"]]
21793
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21794
+  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]
21795
+  (0.0ms) SAVEPOINT active_record_1
21796
+ 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"]]
21797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21798
+ Pulitzer::CloneVersion !!!
21799
+ /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
21800
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]]
21801
+ Pulitzer::ContentElement 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]]
21802
+ 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]]
21803
+  (0.0ms) SAVEPOINT active_record_1
21804
+ SQL (0.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"]]
21805
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21806
+  (0.0ms) SAVEPOINT active_record_1
21807
+ 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]]
21808
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21809
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]
21810
+  (0.1ms) SAVEPOINT active_record_1
21811
+ SQL (0.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"]]
21812
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21813
+  (0.0ms) SAVEPOINT active_record_1
21814
+ 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]]
21815
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21816
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]
21817
+  (0.0ms) SAVEPOINT active_record_1
21818
+ SQL (0.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"]]
21819
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21820
+  (0.0ms) SAVEPOINT active_record_1
21821
+ 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]]
21822
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21823
+ Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]
21824
+  (0.0ms) SAVEPOINT active_record_1
21825
+ 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]]
21826
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21827
+  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]
21828
+  (0.8ms) rollback transaction
21829
+  (0.1ms) begin transaction
21830
+  (0.1ms) commit transaction
21831
+  (0.0ms) begin transaction
21832
+  (0.0ms) SAVEPOINT active_record_1
21833
+ 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"]]
21834
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21835
+  (0.0ms) SAVEPOINT active_record_1
21836
+ Pulitzer::Post Exists (0.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"]]
21837
+ 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"]]
21838
+ 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"]]
21839
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21840
+  (0.0ms) SAVEPOINT active_record_1
21841
+ 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"]]
21842
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21843
+  (0.0ms) SAVEPOINT active_record_1
21844
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1
21845
+ 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"]]
21846
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21847
+  (0.0ms) SAVEPOINT active_record_1
21848
+ SQL (0.1ms) 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"]]
21849
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21850
+  (0.1ms) SAVEPOINT active_record_1
21851
+ Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1
21852
+ 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"]]
21853
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21854
+  (0.0ms) SAVEPOINT active_record_1
21855
+ SQL (0.1ms) 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"]]
21856
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21857
+  (0.0ms) SAVEPOINT active_record_1
21858
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1
21859
+ 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"]]
21860
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21861
+  (0.0ms) SAVEPOINT active_record_1
21862
+ SQL (0.1ms) 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"]]
21863
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21864
+  (0.0ms) SAVEPOINT active_record_1
21865
+ 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"]]
21866
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21867
+ Pulitzer::CloneVersion !!!
21868
+ /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
21869
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]]
21870
+ Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]]
21871
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]
21872
+  (0.0ms) SAVEPOINT active_record_1
21873
+ SQL (0.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"]]
21874
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21875
+  (0.0ms) SAVEPOINT active_record_1
21876
+ 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]]
21877
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21878
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]
21879
+  (0.1ms) SAVEPOINT active_record_1
21880
+ SQL (0.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"]]
21881
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21882
+  (0.0ms) SAVEPOINT active_record_1
21883
+ 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]]
21884
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21885
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]
21886
+  (0.1ms) SAVEPOINT active_record_1
21887
+ SQL (0.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"]]
21888
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21889
+  (0.0ms) SAVEPOINT active_record_1
21890
+ 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]]
21891
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21892
+ Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]
21893
+  (0.0ms) SAVEPOINT active_record_1
21894
+ 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]]
21895
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21896
+ Pulitzer::ContentElement 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]]
21897
+ 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]]
21898
+  (0.8ms) rollback transaction
21899
+  (0.1ms) begin transaction
21900
+  (0.1ms) commit transaction
21901
+  (0.0ms) begin transaction
21902
+  (0.0ms) SAVEPOINT active_record_1
21903
+ SQL (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"]]
21904
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21905
+  (0.1ms) SAVEPOINT active_record_1
21906
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1
21907
+ 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"]]
21908
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21909
+  (0.0ms) SAVEPOINT active_record_1
21910
+ 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"]]
21911
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21912
+  (0.0ms) SAVEPOINT active_record_1
21913
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1
21914
+ 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"]]
21915
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21916
+  (0.0ms) SAVEPOINT active_record_1
21917
+ 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"]]
21918
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21919
+  (0.0ms) SAVEPOINT active_record_1
21920
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1
21921
+ 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"]]
21922
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21923
+  (0.1ms) SAVEPOINT active_record_1
21924
+ 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"]]
21925
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21926
+  (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]]
21927
+  (0.0ms) SAVEPOINT active_record_1
21928
+ Pulitzer::Post Exists (0.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"]]
21929
+ 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"]]
21930
+ 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"]]
21931
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21932
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
21933
+  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]
21934
+ 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]]
21935
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
21936
+  (0.0ms) SAVEPOINT active_record_1
21937
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]
21938
+ 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"]]
21939
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21940
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
21941
+  (0.1ms) SAVEPOINT active_record_1
21942
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]
21943
+ 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"]]
21944
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21945
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
21946
+  (0.0ms) SAVEPOINT active_record_1
21947
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]
21948
+ 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"]]
21949
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21950
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
21951
+  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]
21952
+  (0.6ms) rollback transaction
21953
+  (0.1ms) begin transaction
21954
+  (0.0ms) commit transaction
21955
+  (0.1ms) begin transaction
21956
+  (0.0ms) SAVEPOINT active_record_1
21957
+ 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"]]
21958
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21959
+  (0.1ms) SAVEPOINT active_record_1
21960
+ Pulitzer::Post Exists (0.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"]]
21961
+ 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"]]
21962
+ 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"]]
21963
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21964
+  (0.0ms) SAVEPOINT active_record_1
21965
+ 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"]]
21966
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21967
+  (0.1ms) SAVEPOINT active_record_1
21968
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1
21969
+ 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"]]
21970
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21971
+  (0.0ms) SAVEPOINT active_record_1
21972
+ SQL (0.1ms) 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"]]
21973
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21974
+  (0.0ms) SAVEPOINT active_record_1
21975
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1
21976
+ 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"]]
21977
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21978
+  (0.0ms) SAVEPOINT active_record_1
21979
+ SQL (0.1ms) 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"]]
21980
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21981
+  (0.0ms) SAVEPOINT active_record_1
21982
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1
21983
+ 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"]]
21984
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21985
+  (0.0ms) SAVEPOINT active_record_1
21986
+ SQL (0.1ms) 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"]]
21987
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21988
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* 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]]
21989
+  (0.0ms) SAVEPOINT active_record_1
21990
+ 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]]
21991
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21992
+  (0.0ms) SAVEPOINT active_record_1
21993
+ 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"]]
21994
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21995
+ [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: c99c9fd4-023e-4e1b-9c97-8fbffc3b212e) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
21996
+ [ActiveJob] Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
21997
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
21998
+ [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]]
21999
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] Pulitzer::CloneVersion !!!
22000
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
22001
+ [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]]
22002
+ [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]]
22003
+ [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]]
22004
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.1ms) SAVEPOINT active_record_1
22005
+ [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"]]
22006
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.1ms) RELEASE SAVEPOINT active_record_1
22007
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.0ms) SAVEPOINT active_record_1
22008
+ [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]]
22009
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.0ms) RELEASE SAVEPOINT active_record_1
22010
+ [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]]
22011
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.1ms) SAVEPOINT active_record_1
22012
+ [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"]]
22013
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.1ms) RELEASE SAVEPOINT active_record_1
22014
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.1ms) SAVEPOINT active_record_1
22015
+ [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]]
22016
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.0ms) RELEASE SAVEPOINT active_record_1
22017
+ [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]]
22018
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.0ms) SAVEPOINT active_record_1
22019
+ [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"]]
22020
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.0ms) RELEASE SAVEPOINT active_record_1
22021
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.0ms) SAVEPOINT active_record_1
22022
+ [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]]
22023
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.0ms) RELEASE SAVEPOINT active_record_1
22024
+ [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]]
22025
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.0ms) SAVEPOINT active_record_1
22026
+ [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]]
22027
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.0ms) RELEASE SAVEPOINT active_record_1
22028
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.88ms
22029
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* 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]]
22030
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
22031
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
22032
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
22033
+  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]
22034
+  (0.7ms) rollback transaction
22035
+  (0.1ms) begin transaction
22036
+  (0.0ms) commit transaction
22037
+  (0.0ms) begin transaction
22038
+  (0.1ms) SAVEPOINT active_record_1
22039
+ SQL (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"]]
22040
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22041
+  (0.0ms) SAVEPOINT active_record_1
22042
+ Pulitzer::Post Exists (0.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"]]
22043
+ 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"]]
22044
+ 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"]]
22045
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22046
+  (0.1ms) SAVEPOINT active_record_1
22047
+ 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"]]
22048
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22049
+  (0.1ms) SAVEPOINT active_record_1
22050
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1
22051
+ 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"]]
22052
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22053
+  (0.0ms) SAVEPOINT active_record_1
22054
+ SQL (0.1ms) 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"]]
22055
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22056
+  (0.0ms) SAVEPOINT active_record_1
22057
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1
22058
+ 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"]]
22059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22060
+  (0.0ms) SAVEPOINT active_record_1
22061
+ SQL (0.1ms) 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"]]
22062
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22063
+  (0.0ms) SAVEPOINT active_record_1
22064
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1
22065
+ 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"]]
22066
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22067
+  (0.0ms) SAVEPOINT active_record_1
22068
+ SQL (0.1ms) 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"]]
22069
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22070
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* 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]]
22071
+  (0.0ms) SAVEPOINT active_record_1
22072
+ 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]]
22073
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22074
+  (0.1ms) SAVEPOINT active_record_1
22075
+ 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"]]
22076
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22077
+ [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 259b7f65-f8c2-408a-bef8-8dadb75e86d5) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
22078
+ [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
22079
+ [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
22080
+ [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]]
22081
+ [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] Pulitzer::CloneVersion !!!
22082
+ [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
22083
+ [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]]
22084
+ [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]]
22085
+ [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]]
22086
+ [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) SAVEPOINT active_record_1
22087
+ [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"]]
22088
+ [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) RELEASE SAVEPOINT active_record_1
22089
+ [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) SAVEPOINT active_record_1
22090
+ [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]]
22091
+ [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.1ms) RELEASE SAVEPOINT active_record_1
22092
+ [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]]
22093
+ [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) SAVEPOINT active_record_1
22094
+ [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"]]
22095
+ [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) RELEASE SAVEPOINT active_record_1
22096
+ [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) SAVEPOINT active_record_1
22097
+ [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]]
22098
+ [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) RELEASE SAVEPOINT active_record_1
22099
+ [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]]
22100
+ [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) SAVEPOINT active_record_1
22101
+ [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"]]
22102
+ [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) RELEASE SAVEPOINT active_record_1
22103
+ [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) SAVEPOINT active_record_1
22104
+ [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]]
22105
+ [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) RELEASE SAVEPOINT active_record_1
22106
+ [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]]
22107
+ [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) SAVEPOINT active_record_1
22108
+ [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]]
22109
+ [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.1ms) RELEASE SAVEPOINT active_record_1
22110
+ [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.56ms
22111
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
22112
+ Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]
22113
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
22114
+ Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]
22115
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* 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]]
22116
+  (0.0ms) SAVEPOINT active_record_1
22117
+ 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]]
22118
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22119
+  (0.0ms) SAVEPOINT active_record_1
22120
+ 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"]]
22121
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22122
+ [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 4e92c422-ff33-4a5c-90ec-7ac8f9b16734) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
22123
+ [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
22124
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
22125
+ [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]]
22126
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] Pulitzer::CloneVersion !!!
22127
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
22128
+ [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]]
22129
+ [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]]
22130
+ [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]]
22131
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.1ms) SAVEPOINT active_record_1
22132
+ [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"]]
22133
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) RELEASE SAVEPOINT active_record_1
22134
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.1ms) SAVEPOINT active_record_1
22135
+ [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]]
22136
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) RELEASE SAVEPOINT active_record_1
22137
+ [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]]
22138
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) SAVEPOINT active_record_1
22139
+ [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"]]
22140
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.1ms) RELEASE SAVEPOINT active_record_1
22141
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) SAVEPOINT active_record_1
22142
+ [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]]
22143
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) RELEASE SAVEPOINT active_record_1
22144
+ [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]]
22145
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) SAVEPOINT active_record_1
22146
+ [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"]]
22147
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) RELEASE SAVEPOINT active_record_1
22148
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) SAVEPOINT active_record_1
22149
+ [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]]
22150
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) RELEASE SAVEPOINT active_record_1
22151
+ [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]]
22152
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) SAVEPOINT active_record_1
22153
+ [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]]
22154
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) RELEASE SAVEPOINT active_record_1
22155
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.3ms
22156
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]
22157
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
22158
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
22159
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
22160
+  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]
22161
+  (0.3ms) rollback transaction
22162
+  (0.1ms) begin transaction
22163
+  (0.0ms) commit transaction
22164
+  (0.0ms) begin transaction
22165
+  (0.1ms) rollback transaction
22166
+  (0.1ms) begin transaction
22167
+  (0.1ms) commit transaction
22168
+  (0.1ms) begin transaction
22169
+  (0.1ms) SAVEPOINT active_record_1
22170
+ Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1
22171
+ 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"]]
22172
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22173
+  (0.4ms) rollback transaction
22174
+  (0.1ms) begin transaction
22175
+  (0.1ms) commit transaction
22176
+  (0.0ms) begin transaction
22177
+  (0.1ms) rollback transaction
22178
+  (0.1ms) begin transaction
22179
+  (0.1ms) commit transaction
22180
+  (0.1ms) begin transaction
22181
+  (0.1ms) rollback transaction
22182
+  (0.1ms) begin transaction
22183
+  (0.1ms) commit transaction
22184
+  (0.1ms) begin transaction
22185
+  (0.1ms) rollback transaction
22186
+  (0.1ms) begin transaction
22187
+  (0.1ms) commit transaction
22188
+  (0.1ms) begin transaction
22189
+  (0.1ms) rollback transaction
22190
+  (0.1ms) begin transaction
22191
+  (0.1ms) commit transaction
22192
+  (0.0ms) begin transaction
22193
+  (0.1ms) SAVEPOINT active_record_1
22194
+ Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1
22195
+ 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"]]
22196
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22197
+  (0.5ms) rollback transaction
22198
+  (0.1ms) begin transaction
22199
+  (0.0ms) commit transaction
22200
+  (0.1ms) begin transaction
22201
+  (0.1ms) SAVEPOINT active_record_1
22202
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1
22203
+ 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"]]
22204
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22205
+  (0.4ms) rollback transaction
22206
+  (0.1ms) begin transaction
22207
+  (0.1ms) commit transaction
22208
+  (0.1ms) begin transaction
22209
+  (0.1ms) SAVEPOINT active_record_1
22210
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1
22211
+ 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"]]
22212
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22213
+  (0.3ms) rollback transaction
22214
+  (0.1ms) begin transaction
22215
+  (0.1ms) commit transaction
22216
+  (0.1ms) begin transaction
22217
+  (0.1ms) SAVEPOINT active_record_1
22218
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1
22219
+ 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"]]
22220
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22221
+  (0.0ms) SAVEPOINT active_record_1
22222
+ 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"]]
22223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22224
+  (0.5ms) rollback transaction
22225
+  (0.1ms) begin transaction
22226
+  (0.1ms) commit transaction
22227
+  (0.1ms) begin transaction
22228
+  (0.1ms) SAVEPOINT active_record_1
22229
+ Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1
22230
+ 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"]]
22231
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22232
+  (0.1ms) SAVEPOINT active_record_1
22233
+ 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"]]
22234
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22235
+  (2.6ms) rollback transaction
22236
+  (0.1ms) begin transaction
22237
+  (0.0ms) commit transaction
22238
+  (0.0ms) begin transaction
22239
+  (0.1ms) SAVEPOINT active_record_1
22240
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1
22241
+ 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"]]
22242
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22243
+  (0.3ms) rollback transaction
22244
+  (0.1ms) begin transaction
22245
+  (0.0ms) commit transaction
22246
+  (0.0ms) begin transaction
22247
+  (0.0ms) SAVEPOINT active_record_1
22248
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1
22249
+ 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"]]
22250
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22251
+  (0.4ms) rollback transaction
22252
+  (0.1ms) begin transaction
22253
+  (0.3ms) commit transaction
22254
+  (0.0ms) begin transaction
22255
+  (0.1ms) SAVEPOINT active_record_1
22256
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1
22257
+ 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"]]
22258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22259
+  (0.4ms) rollback transaction
22260
+  (0.1ms) begin transaction
22261
+  (0.0ms) commit transaction
22262
+  (0.0ms) begin transaction
22263
+  (0.1ms) SAVEPOINT active_record_1
22264
+ SQL (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"]]
22265
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22266
+ Pulitzer::Post Exists (0.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"]]
22267
+  (0.4ms) rollback transaction
22268
+  (0.1ms) begin transaction
22269
+  (0.1ms) commit transaction
22270
+  (0.1ms) begin transaction
22271
+  (0.1ms) rollback transaction
22272
+  (0.1ms) begin transaction
22273
+  (0.0ms) commit transaction
22274
+  (0.0ms) begin transaction
22275
+  (0.0ms) rollback transaction
22276
+  (0.0ms) begin transaction
22277
+  (0.0ms) commit transaction
22278
+  (0.0ms) begin transaction
22279
+  (0.0ms) SAVEPOINT active_record_1
22280
+ 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"]]
22281
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22282
+  (0.0ms) SAVEPOINT active_record_1
22283
+ Pulitzer::Post Exists (0.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"]]
22284
+ 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"]]
22285
+ 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"]]
22286
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22287
+  (0.6ms) rollback transaction
22288
+  (0.1ms) begin transaction
22289
+  (0.3ms) commit transaction
22290
+  (0.1ms) begin transaction
22291
+  (0.1ms) SAVEPOINT active_record_1
22292
+ SQL (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"]]
22293
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22294
+  (0.1ms) SAVEPOINT active_record_1
22295
+ 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"]]
22296
+ 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"]]
22297
+ 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"]]
22298
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22299
+  (0.1ms) SAVEPOINT active_record_1
22300
+ 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"]]
22301
+ 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]]
22302
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22303
+  (0.5ms) rollback transaction
22304
+  (0.6ms) begin transaction
22305
+  (0.1ms) commit transaction
22306
+  (0.1ms) begin transaction
22307
+  (0.1ms) SAVEPOINT active_record_1
22308
+ Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1
22309
+ 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"]]
22310
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22311
+  (0.2ms) SAVEPOINT active_record_1
22312
+ 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"]]
22313
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22314
+  (0.0ms) SAVEPOINT active_record_1
22315
+ Pulitzer::Post Exists (0.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"]]
22316
+ 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"]]
22317
+ 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"]]
22318
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22319
+  (0.1ms) SAVEPOINT active_record_1
22320
+ 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"]]
22321
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22322
+  (0.7ms) rollback transaction
22323
+  (0.1ms) begin transaction
22324
+  (0.0ms) commit transaction
22325
+  (0.0ms) begin transaction
22326
+  (0.0ms) rollback transaction
22327
+  (0.0ms) begin transaction
22328
+  (0.0ms) commit transaction
22329
+  (0.0ms) begin transaction
22330
+  (0.1ms) rollback transaction
22331
+  (0.1ms) begin transaction
22332
+  (0.0ms) commit transaction
22333
+  (0.0ms) begin transaction
22334
+  (0.0ms) rollback transaction
22335
+  (0.0ms) begin transaction
22336
+  (0.0ms) commit transaction
22337
+  (0.0ms) begin transaction
22338
+  (0.0ms) rollback transaction
22339
+  (0.0ms) begin transaction
22340
+  (0.0ms) commit transaction
22341
+  (0.0ms) begin transaction
22342
+  (0.0ms) rollback transaction
22343
+  (0.0ms) begin transaction
22344
+  (0.0ms) commit transaction
22345
+  (0.0ms) begin transaction
22346
+  (0.0ms) SAVEPOINT active_record_1
22347
+ SQL (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"]]
22348
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22349
+  (0.0ms) SAVEPOINT active_record_1
22350
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1
22351
+ 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"]]
22352
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22353
+  (0.7ms) rollback transaction
22354
+  (0.1ms) begin transaction
22355
+  (0.0ms) commit transaction
22356
+  (0.0ms) begin transaction
22357
+  (0.1ms) rollback transaction
22358
+  (0.1ms) begin transaction
22359
+  (0.0ms) commit transaction
22360
+  (0.0ms) begin transaction
22361
+  (0.0ms) rollback transaction
22362
+  (0.0ms) begin transaction
22363
+  (0.0ms) commit transaction
22364
+  (0.1ms) begin transaction
22365
+  (0.2ms) rollback transaction
22366
+  (0.1ms) begin transaction
22367
+  (0.0ms) commit transaction
22368
+  (0.0ms) begin transaction
22369
+  (0.0ms) rollback transaction
22370
+  (0.2ms) begin transaction
22371
+  (0.2ms) commit transaction
22372
+  (0.4ms) begin transaction
22373
+  (0.0ms) rollback transaction
22374
+  (0.0ms) begin transaction
22375
+  (0.0ms) commit transaction
22376
+  (0.0ms) begin transaction
22377
+  (0.0ms) rollback transaction
22378
+  (0.1ms) begin transaction
22379
+  (0.1ms) commit transaction
22380
+  (0.0ms) begin transaction
22381
+  (0.0ms) rollback transaction
22382
+  (0.1ms) begin transaction
22383
+  (0.0ms) commit transaction
22384
+  (0.0ms) begin transaction
22385
+  (0.1ms) rollback transaction
22386
+  (0.1ms) begin transaction
22387
+  (0.1ms) commit transaction
22388
+  (0.0ms) begin transaction
22389
+  (0.0ms) rollback transaction
22390
+  (0.0ms) begin transaction
22391
+  (0.0ms) commit transaction
22392
+  (0.1ms) begin transaction
22393
+  (0.0ms) rollback transaction
22394
+  (0.0ms) begin transaction
22395
+  (0.0ms) commit transaction
22396
+  (0.0ms) begin transaction
22397
+  (0.0ms) rollback transaction
22398
+  (0.0ms) begin transaction
22399
+  (0.1ms) commit transaction
22400
+  (0.0ms) begin transaction
22401
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1
22402
+  (0.0ms) rollback transaction
22403
+  (0.0ms) begin transaction
22404
+  (0.0ms) commit transaction
22405
+  (0.0ms) begin transaction
22406
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1
22407
+  (0.1ms) rollback transaction
22408
+  (0.1ms) begin transaction
22409
+  (0.0ms) commit transaction
22410
+  (0.0ms) begin transaction
22411
+ Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1
22412
+  (0.1ms) SAVEPOINT active_record_1
22413
+ 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"]]
22414
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22415
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1
22416
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1
22417
+  (0.4ms) rollback transaction
22418
+  (0.1ms) begin transaction
22419
+  (0.0ms) commit transaction
22420
+  (0.0ms) begin transaction
22421
+  (0.1ms) rollback transaction
22422
+  (0.1ms) begin transaction
22423
+  (0.0ms) commit transaction
22424
+  (0.0ms) begin transaction
22425
+  (0.0ms) rollback transaction
22426
+  (0.1ms) begin transaction
22427
+  (0.0ms) commit transaction
22428
+  (0.0ms) begin transaction
22429
+  (0.1ms) SAVEPOINT active_record_1
22430
+ SQL (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"]]
22431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22432
+  (0.0ms) SAVEPOINT active_record_1
22433
+ 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"]]
22434
+ 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"]]
22435
+ 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"]]
22436
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22437
+  (0.6ms) rollback transaction
22438
+  (0.1ms) begin transaction
22439
+  (0.0ms) commit transaction
22440
+  (0.0ms) begin transaction
22441
+  (0.1ms) rollback transaction
22442
+  (0.1ms) begin transaction
22443
+  (0.0ms) commit transaction
22444
+  (0.0ms) begin transaction
22445
+  (0.1ms) rollback transaction
22446
+  (0.0ms) begin transaction
22447
+  (0.0ms) commit transaction
22448
+  (0.0ms) begin transaction
22449
+  (0.1ms) rollback transaction
22450
+  (0.0ms) begin transaction
22451
+  (0.0ms) commit transaction
22452
+  (0.0ms) begin transaction
22453
+  (0.0ms) rollback transaction
22454
+  (0.1ms) begin transaction
22455
+  (0.1ms) commit transaction
22456
+  (0.1ms) begin transaction
22457
+  (0.1ms) rollback transaction
22458
+  (0.1ms) begin transaction
22459
+  (0.1ms) commit transaction
22460
+  (0.1ms) begin transaction
22461
+  (0.1ms) rollback transaction
22462
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
22463
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
22464
+  (1.8ms) DELETE FROM "pulitzer_content_element_types";
22465
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
22466
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types';
22467
+  (0.8ms) DELETE FROM "pulitzer_content_elements";
22468
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
22469
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements';
22470
+  (0.9ms) DELETE FROM "pulitzer_post_type_content_element_types";
22471
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
22472
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_type_content_element_types';
22473
+  (0.9ms) DELETE FROM "pulitzer_post_types";
22474
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
22475
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';
22476
+  (0.8ms) DELETE FROM "pulitzer_posts";
22477
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
22478
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts';
22479
+  (0.9ms) DELETE FROM "pulitzer_tags";
22480
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
22481
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_tags';
22482
+  (0.9ms) DELETE FROM "pulitzer_versions";
22483
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
22484
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions';
22485
+  (0.7ms) DELETE FROM "search_locations";
22486
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
22487
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';
22488
+  (0.7ms) DELETE FROM "pulitzer_post_tags";
22489
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
22490
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags';
22491
+  (0.0ms) begin transaction
22492
+  (0.0ms) commit transaction
22493
+  (0.0ms) begin transaction
22494
+  (0.0ms) SAVEPOINT active_record_1
22495
+ SQL (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"]]
22496
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22497
+  (0.1ms) SAVEPOINT active_record_1
22498
+ Pulitzer::Post Exists (0.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"]]
22499
+ 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"]]
22500
+ 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"]]
22501
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22502
+  (0.1ms) SAVEPOINT active_record_1
22503
+ 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"]]
22504
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22505
+  (0.0ms) SAVEPOINT active_record_1
22506
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1
22507
+ 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"]]
22508
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22509
+  (0.1ms) SAVEPOINT active_record_1
22510
+ SQL (0.1ms) 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"]]
22511
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22512
+  (0.1ms) SAVEPOINT active_record_1
22513
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1
22514
+ 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"]]
22515
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22516
+  (0.0ms) SAVEPOINT active_record_1
22517
+ SQL (0.1ms) 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"]]
22518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22519
+  (0.0ms) SAVEPOINT active_record_1
22520
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1
22521
+ 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"]]
22522
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22523
+  (0.0ms) SAVEPOINT active_record_1
22524
+ SQL (0.1ms) 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"]]
22525
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22526
+  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]
22527
+  (0.0ms) SAVEPOINT active_record_1
22528
+ 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"]]
22529
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22530
+ Pulitzer::CloneVersion !!!
22531
+ /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
22532
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]]
22533
+ Pulitzer::ContentElement 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]]
22534
+ 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]]
22535
+  (0.0ms) SAVEPOINT active_record_1
22536
+ SQL (0.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"]]
22537
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22538
+  (0.0ms) SAVEPOINT active_record_1
22539
+ 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]]
22540
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22541
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]
22542
+  (0.0ms) SAVEPOINT active_record_1
22543
+ SQL (0.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"]]
22544
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22545
+  (0.0ms) SAVEPOINT active_record_1
22546
+ 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]]
22547
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22548
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]
22549
+  (0.0ms) SAVEPOINT active_record_1
22550
+ SQL (0.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"]]
22551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22552
+  (0.0ms) SAVEPOINT active_record_1
22553
+ 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]]
22554
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22555
+ Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]
22556
+  (0.0ms) SAVEPOINT active_record_1
22557
+ 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]]
22558
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22559
+  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]
22560
+  (1.3ms) rollback transaction
22561
+  (0.1ms) begin transaction
22562
+  (0.0ms) commit transaction
22563
+  (0.0ms) begin transaction
22564
+  (0.1ms) SAVEPOINT active_record_1
22565
+ SQL (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"]]
22566
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22567
+  (0.0ms) SAVEPOINT active_record_1
22568
+ Pulitzer::Post Exists (0.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"]]
22569
+ 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"]]
22570
+ 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"]]
22571
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22572
+  (0.0ms) SAVEPOINT active_record_1
22573
+ 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"]]
22574
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22575
+  (0.0ms) SAVEPOINT active_record_1
22576
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1
22577
+ 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"]]
22578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22579
+  (0.0ms) SAVEPOINT active_record_1
22580
+ SQL (0.1ms) 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"]]
22581
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22582
+  (0.0ms) SAVEPOINT active_record_1
22583
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1
22584
+ 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"]]
22585
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22586
+  (0.0ms) SAVEPOINT active_record_1
22587
+ SQL (0.1ms) 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"]]
22588
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22589
+  (0.0ms) SAVEPOINT active_record_1
22590
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1
22591
+ 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"]]
22592
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22593
+  (0.0ms) SAVEPOINT active_record_1
22594
+ SQL (0.1ms) 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"]]
22595
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22596
+  (0.1ms) SAVEPOINT active_record_1
22597
+ 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"]]
22598
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22599
+ Pulitzer::CloneVersion !!!
22600
+ /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
22601
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]]
22602
+ Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]]
22603
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]
22604
+  (0.1ms) SAVEPOINT active_record_1
22605
+ SQL (0.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"]]
22606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22607
+  (0.0ms) SAVEPOINT active_record_1
22608
+ 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]]
22609
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22610
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]
22611
+  (0.1ms) SAVEPOINT active_record_1
22612
+ SQL (0.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"]]
22613
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22614
+  (0.0ms) SAVEPOINT active_record_1
22615
+ 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]]
22616
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22617
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]
22618
+  (0.1ms) SAVEPOINT active_record_1
22619
+ 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"]]
22620
+  (0.3ms) RELEASE SAVEPOINT active_record_1
22621
+  (0.1ms) SAVEPOINT active_record_1
22622
+ 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]]
22623
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22624
+ Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]
22625
+  (0.1ms) SAVEPOINT active_record_1
22626
+ 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]]
22627
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22628
+ 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]]
22629
+ 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]]
22630
+  (0.7ms) rollback transaction
22631
+  (0.1ms) begin transaction
22632
+  (0.0ms) commit transaction
22633
+  (0.0ms) begin transaction
22634
+  (0.0ms) SAVEPOINT active_record_1
22635
+ SQL (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"]]
22636
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22637
+  (0.1ms) SAVEPOINT active_record_1
22638
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1
22639
+ 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"]]
22640
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22641
+  (0.1ms) SAVEPOINT active_record_1
22642
+ 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"]]
22643
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22644
+  (0.0ms) SAVEPOINT active_record_1
22645
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1
22646
+ 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"]]
22647
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22648
+  (0.0ms) SAVEPOINT active_record_1
22649
+ 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"]]
22650
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22651
+  (0.1ms) SAVEPOINT active_record_1
22652
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1
22653
+ 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"]]
22654
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22655
+  (0.1ms) SAVEPOINT active_record_1
22656
+ 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"]]
22657
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22658
+  (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]]
22659
+  (0.1ms) SAVEPOINT active_record_1
22660
+ Pulitzer::Post Exists (0.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"]]
22661
+ 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"]]
22662
+ 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"]]
22663
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22664
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
22665
+  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]
22666
+ 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]]
22667
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
22668
+  (0.1ms) SAVEPOINT active_record_1
22669
+ 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]]
22670
+ 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"]]
22671
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22672
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
22673
+  (0.1ms) SAVEPOINT active_record_1
22674
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]
22675
+ 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"]]
22676
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22677
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
22678
+  (0.1ms) SAVEPOINT active_record_1
22679
+ 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]]
22680
+ 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"]]
22681
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22682
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
22683
+  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]
22684
+  (0.7ms) rollback transaction
22685
+  (0.1ms) begin transaction
22686
+  (0.1ms) commit transaction
22687
+  (0.1ms) begin transaction
22688
+  (0.1ms) SAVEPOINT active_record_1
22689
+ SQL (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"]]
22690
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22691
+  (0.1ms) SAVEPOINT active_record_1
22692
+ Pulitzer::Post Exists (0.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"]]
22693
+ 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"]]
22694
+ 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"]]
22695
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22696
+  (0.0ms) SAVEPOINT active_record_1
22697
+ 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"]]
22698
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22699
+  (0.1ms) SAVEPOINT active_record_1
22700
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1
22701
+ 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"]]
22702
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22703
+  (0.0ms) SAVEPOINT active_record_1
22704
+ 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"]]
22705
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22706
+  (0.1ms) SAVEPOINT active_record_1
22707
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1
22708
+ 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"]]
22709
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22710
+  (0.0ms) SAVEPOINT active_record_1
22711
+ SQL (0.1ms) 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"]]
22712
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22713
+  (0.1ms) SAVEPOINT active_record_1
22714
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1
22715
+ 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"]]
22716
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22717
+  (0.1ms) SAVEPOINT active_record_1
22718
+ SQL (0.1ms) 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"]]
22719
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22720
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* 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]]
22721
+  (0.0ms) SAVEPOINT active_record_1
22722
+ 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]]
22723
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22724
+  (0.0ms) SAVEPOINT active_record_1
22725
+ 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"]]
22726
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22727
+ [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 92915849-b535-4901-87f0-4624843b1692) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
22728
+ [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
22729
+ [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
22730
+ [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]]
22731
+ [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] Pulitzer::CloneVersion !!!
22732
+ [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
22733
+ [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]]
22734
+ [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]]
22735
+ [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]]
22736
+ [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.1ms) SAVEPOINT active_record_1
22737
+ [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"]]
22738
+ [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.1ms) RELEASE SAVEPOINT active_record_1
22739
+ [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.0ms) SAVEPOINT active_record_1
22740
+ [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]]
22741
+ [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.1ms) RELEASE SAVEPOINT active_record_1
22742
+ [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]]
22743
+ [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.0ms) SAVEPOINT active_record_1
22744
+ [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"]]
22745
+ [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.0ms) RELEASE SAVEPOINT active_record_1
22746
+ [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.0ms) SAVEPOINT active_record_1
22747
+ [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]]
22748
+ [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.1ms) RELEASE SAVEPOINT active_record_1
22749
+ [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]]
22750
+ [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.0ms) SAVEPOINT active_record_1
22751
+ [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"]]
22752
+ [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.0ms) RELEASE SAVEPOINT active_record_1
22753
+ [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.0ms) SAVEPOINT active_record_1
22754
+ [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]]
22755
+ [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.0ms) RELEASE SAVEPOINT active_record_1
22756
+ [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]]
22757
+ [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.0ms) SAVEPOINT active_record_1
22758
+ [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]]
22759
+ [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.0ms) RELEASE SAVEPOINT active_record_1
22760
+ [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.78ms
22761
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* 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]]
22762
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
22763
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
22764
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
22765
+  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]
22766
+  (0.6ms) rollback transaction
22767
+  (0.1ms) begin transaction
22768
+  (0.0ms) commit transaction
22769
+  (0.0ms) begin transaction
22770
+  (0.0ms) SAVEPOINT active_record_1
22771
+ SQL (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"]]
22772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22773
+  (0.1ms) SAVEPOINT active_record_1
22774
+ Pulitzer::Post Exists (0.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"]]
22775
+ 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"]]
22776
+ 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"]]
22777
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22778
+  (0.1ms) SAVEPOINT active_record_1
22779
+ 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"]]
22780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22781
+  (0.0ms) SAVEPOINT active_record_1
22782
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1
22783
+ 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"]]
22784
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22785
+  (0.0ms) SAVEPOINT active_record_1
22786
+ SQL (0.1ms) 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"]]
22787
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22788
+  (0.0ms) SAVEPOINT active_record_1
22789
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1
22790
+ 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"]]
22791
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22792
+  (0.0ms) SAVEPOINT active_record_1
22793
+ SQL (0.1ms) 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"]]
22794
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22795
+  (0.1ms) SAVEPOINT active_record_1
22796
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1
22797
+ 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"]]
22798
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22799
+  (0.0ms) SAVEPOINT active_record_1
22800
+ SQL (0.1ms) 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"]]
22801
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22802
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* 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]]
22803
+  (0.0ms) SAVEPOINT active_record_1
22804
+ 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]]
22805
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22806
+  (0.0ms) SAVEPOINT active_record_1
22807
+ 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"]]
22808
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22809
+ [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
22810
+ [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
22811
+ [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
22812
+ [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]]
22813
+ [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] Pulitzer::CloneVersion !!!
22814
+ [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
22815
+ [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]]
22816
+ [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]]
22817
+ [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]]
22818
+ [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.0ms) SAVEPOINT active_record_1
22819
+ [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"]]
22820
+ [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.1ms) RELEASE SAVEPOINT active_record_1
22821
+ [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.0ms) SAVEPOINT active_record_1
22822
+ [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]]
22823
+ [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.1ms) RELEASE SAVEPOINT active_record_1
22824
+ [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]]
22825
+ [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.1ms) SAVEPOINT active_record_1
22826
+ [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"]]
22827
+ [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.1ms) RELEASE SAVEPOINT active_record_1
22828
+ [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.0ms) SAVEPOINT active_record_1
22829
+ [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]]
22830
+ [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.1ms) RELEASE SAVEPOINT active_record_1
22831
+ [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]]
22832
+ [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.1ms) SAVEPOINT active_record_1
22833
+ [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"]]
22834
+ [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.0ms) RELEASE SAVEPOINT active_record_1
22835
+ [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.0ms) SAVEPOINT active_record_1
22836
+ [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]]
22837
+ [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.0ms) RELEASE SAVEPOINT active_record_1
22838
+ [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]]
22839
+ [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.0ms) SAVEPOINT active_record_1
22840
+ [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]]
22841
+ [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.0ms) RELEASE SAVEPOINT active_record_1
22842
+ [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.18ms
22843
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
22844
+ Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]
22845
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
22846
+ Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]
22847
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* 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]]
22848
+  (0.1ms) SAVEPOINT active_record_1
22849
+ 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]]
22850
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22851
+  (0.0ms) SAVEPOINT active_record_1
22852
+ 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"]]
22853
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22854
+ [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 3990db77-d40a-467e-8a3a-ec359bd53824) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
22855
+ [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
22856
+ [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
22857
+ [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]]
22858
+ [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] Pulitzer::CloneVersion !!!
22859
+ [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
22860
+ [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]]
22861
+ [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]]
22862
+ [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]]
22863
+ [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.0ms) SAVEPOINT active_record_1
22864
+ [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"]]
22865
+ [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.0ms) RELEASE SAVEPOINT active_record_1
22866
+ [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.0ms) SAVEPOINT active_record_1
22867
+ [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]]
22868
+ [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.1ms) RELEASE SAVEPOINT active_record_1
22869
+ [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]]
22870
+ [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.0ms) SAVEPOINT active_record_1
22871
+ [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"]]
22872
+ [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.1ms) RELEASE SAVEPOINT active_record_1
22873
+ [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.1ms) SAVEPOINT active_record_1
22874
+ [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]]
22875
+ [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.1ms) RELEASE SAVEPOINT active_record_1
22876
+ [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]]
22877
+ [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.0ms) SAVEPOINT active_record_1
22878
+ [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"]]
22879
+ [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.1ms) RELEASE SAVEPOINT active_record_1
22880
+ [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.0ms) SAVEPOINT active_record_1
22881
+ [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]]
22882
+ [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.0ms) RELEASE SAVEPOINT active_record_1
22883
+ [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]]
22884
+ [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.0ms) SAVEPOINT active_record_1
22885
+ [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]]
22886
+ [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.0ms) RELEASE SAVEPOINT active_record_1
22887
+ [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.88ms
22888
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]
22889
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
22890
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
22891
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
22892
+  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]
22893
+  (0.8ms) rollback transaction
22894
+  (0.1ms) begin transaction
22895
+  (0.0ms) commit transaction
22896
+  (0.0ms) begin transaction
22897
+  (0.1ms) rollback transaction
22898
+  (0.1ms) begin transaction
22899
+  (0.0ms) commit transaction
22900
+  (0.0ms) begin transaction
22901
+  (0.1ms) SAVEPOINT active_record_1
22902
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1
22903
+ 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"]]
22904
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22905
+  (0.4ms) rollback transaction
22906
+  (0.1ms) begin transaction
22907
+  (0.0ms) commit transaction
22908
+  (0.0ms) begin transaction
22909
+  (0.1ms) rollback transaction
22910
+  (0.1ms) begin transaction
22911
+  (0.0ms) commit transaction
22912
+  (0.0ms) begin transaction
22913
+  (0.0ms) rollback transaction
22914
+  (0.1ms) begin transaction
22915
+  (0.1ms) commit transaction
22916
+  (0.1ms) begin transaction
22917
+  (0.0ms) rollback transaction
22918
+  (0.1ms) begin transaction
22919
+  (0.0ms) commit transaction
22920
+  (0.0ms) begin transaction
22921
+  (0.0ms) rollback transaction
22922
+  (0.0ms) begin transaction
22923
+  (0.0ms) commit transaction
22924
+  (0.0ms) begin transaction
22925
+  (0.1ms) SAVEPOINT active_record_1
22926
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1
22927
+ 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"]]
22928
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22929
+  (0.3ms) rollback transaction
22930
+  (0.1ms) begin transaction
22931
+  (0.0ms) commit transaction
22932
+  (0.0ms) begin transaction
22933
+  (0.0ms) SAVEPOINT active_record_1
22934
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1
22935
+ 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"]]
22936
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22937
+  (0.3ms) rollback transaction
22938
+  (0.1ms) begin transaction
22939
+  (0.0ms) commit transaction
22940
+  (0.0ms) begin transaction
22941
+  (0.0ms) SAVEPOINT active_record_1
22942
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1
22943
+ 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"]]
22944
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22945
+  (0.5ms) rollback transaction
22946
+  (0.1ms) begin transaction
22947
+  (0.0ms) commit transaction
22948
+  (0.0ms) begin transaction
22949
+  (0.1ms) SAVEPOINT active_record_1
22950
+ Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1
22951
+ 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"]]
22952
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22953
+  (0.0ms) SAVEPOINT active_record_1
22954
+ 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"]]
22955
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22956
+  (0.6ms) rollback transaction
22957
+  (0.1ms) begin transaction
22958
+  (0.0ms) commit transaction
22959
+  (0.0ms) begin transaction
22960
+  (0.0ms) SAVEPOINT active_record_1
22961
+ Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1
22962
+ 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"]]
22963
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22964
+  (0.1ms) SAVEPOINT active_record_1
22965
+ 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"]]
22966
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22967
+  (0.6ms) rollback transaction
22968
+  (0.1ms) begin transaction
22969
+  (0.0ms) commit transaction
22970
+  (0.0ms) begin transaction
22971
+  (0.0ms) SAVEPOINT active_record_1
22972
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1
22973
+ 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"]]
22974
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22975
+  (0.4ms) rollback transaction
22976
+  (0.1ms) begin transaction
22977
+  (0.1ms) commit transaction
22978
+  (0.0ms) begin transaction
22979
+  (0.1ms) SAVEPOINT active_record_1
22980
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1
22981
+ 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"]]
22982
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22983
+  (0.4ms) rollback transaction
22984
+  (0.1ms) begin transaction
22985
+  (0.0ms) commit transaction
22986
+  (0.0ms) begin transaction
22987
+  (0.1ms) SAVEPOINT active_record_1
22988
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1
22989
+ 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"]]
22990
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22991
+  (0.5ms) rollback transaction
22992
+  (0.1ms) begin transaction
22993
+  (0.1ms) commit transaction
22994
+  (0.0ms) begin transaction
22995
+  (0.1ms) SAVEPOINT active_record_1
22996
+ SQL (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"]]
22997
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22998
+ Pulitzer::Post Exists (0.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"]]
22999
+  (0.4ms) rollback transaction
23000
+  (0.1ms) begin transaction
23001
+  (0.1ms) commit transaction
23002
+  (0.1ms) begin transaction
23003
+  (0.1ms) rollback transaction
23004
+  (0.1ms) begin transaction
23005
+  (0.3ms) commit transaction
23006
+  (0.0ms) begin transaction
23007
+  (0.0ms) rollback transaction
23008
+  (0.0ms) begin transaction
23009
+  (0.0ms) commit transaction
23010
+  (0.0ms) begin transaction
23011
+  (0.0ms) SAVEPOINT active_record_1
23012
+ SQL (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"]]
23013
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23014
+  (0.0ms) SAVEPOINT active_record_1
23015
+ Pulitzer::Post Exists (0.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"]]
23016
+ 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"]]
23017
+ 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"]]
23018
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23019
+  (0.7ms) rollback transaction
23020
+  (0.1ms) begin transaction
23021
+  (0.0ms) commit transaction
23022
+  (0.0ms) begin transaction
23023
+  (0.0ms) SAVEPOINT active_record_1
23024
+ 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"]]
23025
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23026
+  (0.0ms) SAVEPOINT active_record_1
23027
+ Pulitzer::Post Exists (0.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"]]
23028
+ 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"]]
23029
+ 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"]]
23030
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23031
+  (0.0ms) SAVEPOINT active_record_1
23032
+ 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"]]
23033
+ 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]]
23034
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23035
+  (0.6ms) rollback transaction
23036
+  (0.1ms) begin transaction
23037
+  (0.0ms) commit transaction
23038
+  (0.0ms) begin transaction
23039
+  (0.1ms) SAVEPOINT active_record_1
23040
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1
23041
+ 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"]]
23042
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23043
+  (0.1ms) SAVEPOINT active_record_1
23044
+ SQL (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"]]
23045
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23046
+  (0.0ms) SAVEPOINT active_record_1
23047
+ Pulitzer::Post Exists (0.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"]]
23048
+ 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"]]
23049
+ 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"]]
23050
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23051
+  (0.0ms) SAVEPOINT active_record_1
23052
+ 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"]]
23053
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23054
+  (0.6ms) rollback transaction
23055
+  (0.1ms) begin transaction
23056
+  (0.0ms) commit transaction
23057
+  (0.0ms) begin transaction
23058
+  (0.0ms) rollback transaction
23059
+  (0.1ms) begin transaction
23060
+  (0.0ms) commit transaction
23061
+  (0.0ms) begin transaction
23062
+  (0.1ms) rollback transaction
23063
+  (0.1ms) begin transaction
23064
+  (0.0ms) commit transaction
23065
+  (0.0ms) begin transaction
23066
+  (0.1ms) rollback transaction
23067
+  (0.1ms) begin transaction
23068
+  (0.0ms) commit transaction
23069
+  (0.0ms) begin transaction
23070
+  (0.0ms) rollback transaction
23071
+  (0.0ms) begin transaction
23072
+  (0.0ms) commit transaction
23073
+  (0.0ms) begin transaction
23074
+  (0.0ms) rollback transaction
23075
+  (0.3ms) begin transaction
23076
+  (0.0ms) commit transaction
23077
+  (0.0ms) begin transaction
23078
+  (0.1ms) SAVEPOINT active_record_1
23079
+ SQL (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"]]
23080
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23081
+  (0.1ms) SAVEPOINT active_record_1
23082
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1
23083
+ 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"]]
23084
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23085
+  (0.6ms) rollback transaction
23086
+  (0.1ms) begin transaction
23087
+  (0.0ms) commit transaction
23088
+  (0.0ms) begin transaction
23089
+  (0.1ms) rollback transaction
23090
+  (0.0ms) begin transaction
23091
+  (0.0ms) commit transaction
23092
+  (0.0ms) begin transaction
23093
+  (0.0ms) rollback transaction
23094
+  (0.0ms) begin transaction
23095
+  (0.1ms) commit transaction
23096
+  (0.0ms) begin transaction
23097
+  (0.0ms) rollback transaction
23098
+  (0.0ms) begin transaction
23099
+  (0.0ms) commit transaction
23100
+  (0.0ms) begin transaction
23101
+  (0.0ms) rollback transaction
23102
+  (0.0ms) begin transaction
23103
+  (0.0ms) commit transaction
23104
+  (0.0ms) begin transaction
23105
+  (0.1ms) rollback transaction
23106
+  (0.3ms) begin transaction
23107
+  (0.2ms) commit transaction
23108
+  (0.2ms) begin transaction
23109
+  (0.1ms) rollback transaction
23110
+  (0.1ms) begin transaction
23111
+  (0.1ms) commit transaction
23112
+  (0.1ms) begin transaction
23113
+  (0.1ms) rollback transaction
23114
+  (0.1ms) begin transaction
23115
+  (0.1ms) commit transaction
23116
+  (0.1ms) begin transaction
23117
+  (0.1ms) rollback transaction
23118
+  (0.1ms) begin transaction
23119
+  (0.0ms) commit transaction
23120
+  (0.0ms) begin transaction
23121
+  (0.0ms) rollback transaction
23122
+  (0.0ms) begin transaction
23123
+  (0.0ms) commit transaction
23124
+  (0.0ms) begin transaction
23125
+  (0.0ms) rollback transaction
23126
+  (0.0ms) begin transaction
23127
+  (0.0ms) commit transaction
23128
+  (0.0ms) begin transaction
23129
+  (0.0ms) rollback transaction
23130
+  (0.0ms) begin transaction
23131
+  (0.0ms) commit transaction
23132
+  (0.0ms) begin transaction
23133
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1
23134
+  (0.0ms) rollback transaction
23135
+  (0.0ms) begin transaction
23136
+  (0.0ms) commit transaction
23137
+  (0.0ms) begin transaction
23138
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1
23139
+  (0.0ms) rollback transaction
23140
+  (0.0ms) begin transaction
23141
+  (0.0ms) commit transaction
23142
+  (0.0ms) begin transaction
23143
+ Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1
23144
+  (0.1ms) SAVEPOINT active_record_1
23145
+ 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"]]
23146
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23147
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1
23148
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1
23149
+  (0.4ms) rollback transaction
23150
+  (0.1ms) begin transaction
23151
+  (0.0ms) commit transaction
23152
+  (0.0ms) begin transaction
23153
+  (0.1ms) rollback transaction
23154
+  (0.1ms) begin transaction
23155
+  (0.0ms) commit transaction
23156
+  (0.0ms) begin transaction
23157
+  (0.1ms) rollback transaction
23158
+  (0.4ms) begin transaction
23159
+  (0.1ms) commit transaction
23160
+  (0.0ms) begin transaction
23161
+  (0.0ms) SAVEPOINT active_record_1
23162
+ SQL (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"]]
23163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23164
+  (0.0ms) SAVEPOINT active_record_1
23165
+ Pulitzer::Post Exists (0.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"]]
23166
+ 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"]]
23167
+ 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"]]
23168
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23169
+  (0.7ms) rollback transaction
23170
+  (0.1ms) begin transaction
23171
+  (0.0ms) commit transaction
23172
+  (0.0ms) begin transaction
23173
+  (0.1ms) rollback transaction
23174
+  (0.1ms) begin transaction
23175
+  (0.0ms) commit transaction
23176
+  (0.0ms) begin transaction
23177
+  (0.0ms) rollback transaction
23178
+  (0.0ms) begin transaction
23179
+  (0.0ms) commit transaction
23180
+  (0.0ms) begin transaction
23181
+  (0.2ms) rollback transaction
23182
+  (0.1ms) begin transaction
23183
+  (0.0ms) commit transaction
23184
+  (0.1ms) begin transaction
23185
+  (0.0ms) rollback transaction
23186
+  (0.0ms) begin transaction
23187
+  (0.0ms) commit transaction
23188
+  (0.0ms) begin transaction
23189
+  (0.0ms) rollback transaction
23190
+  (0.0ms) begin transaction
23191
+  (0.0ms) commit transaction
23192
+  (0.0ms) begin transaction
23193
+  (0.0ms) rollback transaction
23194
+  (0.0ms) begin transaction
23195
+  (0.1ms) commit transaction
23196
+  (0.0ms) begin transaction
23197
+  (0.0ms) SAVEPOINT active_record_1
23198
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1
23199
+ 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"]]
23200
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23201
+  (0.0ms) SAVEPOINT active_record_1
23202
+ 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"]]
23203
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23204
+  (0.0ms) SAVEPOINT active_record_1
23205
+ Pulitzer::Post Exists (0.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"]]
23206
+ 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"]]
23207
+ 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"]]
23208
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23209
+  (0.6ms) rollback transaction
23210
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
23211
+  (1.7ms) DELETE FROM "pulitzer_content_element_types";
23212
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
23213
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types';
23214
+  (0.9ms) DELETE FROM "pulitzer_content_elements";
23215
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
23216
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements';
23217
+  (1.0ms) DELETE FROM "pulitzer_post_type_content_element_types";
23218
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
23219
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_type_content_element_types';
23220
+  (0.9ms) DELETE FROM "pulitzer_post_types";
23221
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
23222
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';
23223
+  (0.8ms) DELETE FROM "pulitzer_posts";
23224
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
23225
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts';
23226
+  (0.8ms) DELETE FROM "pulitzer_tags";
23227
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
23228
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_tags';
23229
+  (0.8ms) DELETE FROM "pulitzer_versions";
23230
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
23231
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions';
23232
+  (0.7ms) DELETE FROM "search_locations";
23233
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
23234
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';
23235
+  (0.8ms) DELETE FROM "pulitzer_post_tags";
23236
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
23237
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags';
23238
+  (0.1ms) begin transaction
23239
+  (0.0ms) commit transaction
23240
+  (0.0ms) begin transaction
23241
+  (0.1ms) SAVEPOINT active_record_1
23242
+ SQL (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"]]
23243
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23244
+  (0.1ms) SAVEPOINT active_record_1
23245
+ Pulitzer::Post Exists (0.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"]]
23246
+ 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"]]
23247
+ 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"]]
23248
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23249
+  (0.0ms) SAVEPOINT active_record_1
23250
+ 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"]]
23251
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23252
+  (0.0ms) SAVEPOINT active_record_1
23253
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1
23254
+ 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"]]
23255
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23256
+  (0.0ms) SAVEPOINT active_record_1
23257
+ SQL (0.1ms) 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"]]
23258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23259
+  (0.0ms) SAVEPOINT active_record_1
23260
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1
23261
+ 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"]]
23262
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23263
+  (0.0ms) SAVEPOINT active_record_1
23264
+ SQL (0.1ms) 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"]]
23265
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23266
+  (0.0ms) SAVEPOINT active_record_1
23267
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1
23268
+ 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"]]
23269
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23270
+  (0.0ms) SAVEPOINT active_record_1
23271
+ 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"]]
23272
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23273
+  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]
23274
+  (0.0ms) SAVEPOINT active_record_1
23275
+ 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"]]
23276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23277
+ Pulitzer::CloneVersion !!!
23278
+ /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
23279
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]]
23280
+ Pulitzer::ContentElement 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]]
23281
+ 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]]
23282
+  (0.0ms) SAVEPOINT active_record_1
23283
+ SQL (0.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"]]
23284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23285
+  (0.0ms) SAVEPOINT active_record_1
23286
+ 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]]
23287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23288
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]
23289
+  (0.0ms) SAVEPOINT active_record_1
23290
+ SQL (0.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"]]
23291
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23292
+  (0.0ms) SAVEPOINT active_record_1
23293
+ 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]]
23294
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23295
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]
23296
+  (0.0ms) SAVEPOINT active_record_1
23297
+ SQL (0.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"]]
23298
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23299
+  (0.0ms) SAVEPOINT active_record_1
23300
+ 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]]
23301
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23302
+ Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]
23303
+  (0.1ms) SAVEPOINT active_record_1
23304
+ 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]]
23305
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23306
+  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]
23307
+  (1.5ms) rollback transaction
23308
+  (0.1ms) begin transaction
23309
+  (0.0ms) commit transaction
23310
+  (0.0ms) begin transaction
23311
+  (0.0ms) SAVEPOINT active_record_1
23312
+ SQL (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"]]
23313
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23314
+  (0.0ms) SAVEPOINT active_record_1
23315
+ Pulitzer::Post Exists (0.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"]]
23316
+ 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"]]
23317
+ 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"]]
23318
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23319
+  (0.0ms) SAVEPOINT active_record_1
23320
+ 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"]]
23321
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23322
+  (0.0ms) SAVEPOINT active_record_1
23323
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1
23324
+ 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"]]
23325
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23326
+  (0.0ms) SAVEPOINT active_record_1
23327
+ SQL (0.1ms) 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"]]
23328
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23329
+  (0.0ms) SAVEPOINT active_record_1
23330
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1
23331
+ 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"]]
23332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23333
+  (0.0ms) SAVEPOINT active_record_1
23334
+ SQL (0.1ms) 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"]]
23335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23336
+  (0.1ms) SAVEPOINT active_record_1
23337
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1
23338
+ 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"]]
23339
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23340
+  (0.0ms) SAVEPOINT active_record_1
23341
+ SQL (0.1ms) 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"]]
23342
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23343
+  (0.0ms) SAVEPOINT active_record_1
23344
+ 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"]]
23345
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23346
+ Pulitzer::CloneVersion !!!
23347
+ /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
23348
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]]
23349
+ Pulitzer::ContentElement 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]]
23350
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]
23351
+  (0.1ms) SAVEPOINT active_record_1
23352
+ SQL (0.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"]]
23353
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23354
+  (0.0ms) SAVEPOINT active_record_1
23355
+ 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]]
23356
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23357
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]
23358
+  (0.1ms) SAVEPOINT active_record_1
23359
+ SQL (0.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"]]
23360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23361
+  (0.0ms) SAVEPOINT active_record_1
23362
+ 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]]
23363
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23364
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]
23365
+  (0.1ms) SAVEPOINT active_record_1
23366
+ SQL (0.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"]]
23367
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23368
+  (0.0ms) SAVEPOINT active_record_1
23369
+ 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]]
23370
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23371
+ Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]
23372
+  (0.0ms) SAVEPOINT active_record_1
23373
+ 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]]
23374
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23375
+ 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]]
23376
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]
23377
+  (0.7ms) rollback transaction
23378
+  (0.1ms) begin transaction
23379
+  (0.0ms) commit transaction
23380
+  (0.0ms) begin transaction
23381
+  (0.0ms) SAVEPOINT active_record_1
23382
+ SQL (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"]]
23383
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23384
+  (0.1ms) SAVEPOINT active_record_1
23385
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1
23386
+ 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"]]
23387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23388
+  (0.0ms) SAVEPOINT active_record_1
23389
+ 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"]]
23390
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23391
+  (0.0ms) SAVEPOINT active_record_1
23392
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1
23393
+ 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"]]
23394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23395
+  (0.0ms) SAVEPOINT active_record_1
23396
+ 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"]]
23397
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23398
+  (0.0ms) SAVEPOINT active_record_1
23399
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1
23400
+ 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"]]
23401
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23402
+  (0.0ms) SAVEPOINT active_record_1
23403
+ 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"]]
23404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23405
+  (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]]
23406
+  (0.0ms) SAVEPOINT active_record_1
23407
+ Pulitzer::Post Exists (0.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"]]
23408
+ 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"]]
23409
+ 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"]]
23410
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23411
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
23412
+  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]
23413
+ 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]]
23414
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
23415
+  (0.0ms) SAVEPOINT active_record_1
23416
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]
23417
+ 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"]]
23418
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23419
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
23420
+  (0.2ms) SAVEPOINT active_record_1
23421
+ 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]]
23422
+ 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"]]
23423
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23424
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
23425
+  (0.0ms) SAVEPOINT active_record_1
23426
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]
23427
+ 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"]]
23428
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23429
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
23430
+  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]
23431
+  (0.8ms) rollback transaction
23432
+  (0.1ms) begin transaction
23433
+  (0.0ms) commit transaction
23434
+  (0.0ms) begin transaction
23435
+  (0.0ms) SAVEPOINT active_record_1
23436
+ SQL (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"]]
23437
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23438
+  (0.1ms) SAVEPOINT active_record_1
23439
+ Pulitzer::Post Exists (0.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"]]
23440
+ 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"]]
23441
+ 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"]]
23442
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23443
+  (0.0ms) SAVEPOINT active_record_1
23444
+ 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"]]
23445
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23446
+  (0.0ms) SAVEPOINT active_record_1
23447
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1
23448
+ 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"]]
23449
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23450
+  (0.0ms) SAVEPOINT active_record_1
23451
+ SQL (0.1ms) 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"]]
23452
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23453
+  (0.0ms) SAVEPOINT active_record_1
23454
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1
23455
+ 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"]]
23456
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23457
+  (0.0ms) SAVEPOINT active_record_1
23458
+ SQL (0.1ms) 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"]]
23459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23460
+  (0.0ms) SAVEPOINT active_record_1
23461
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1
23462
+ 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"]]
23463
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23464
+  (0.0ms) SAVEPOINT active_record_1
23465
+ SQL (0.1ms) 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"]]
23466
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23467
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* 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]]
23468
+  (0.0ms) SAVEPOINT active_record_1
23469
+ 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]]
23470
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23471
+  (0.0ms) SAVEPOINT active_record_1
23472
+ 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"]]
23473
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23474
+ [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: c72f7005-7398-44c1-8bd1-4f07cd3cf2e7) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
23475
+ [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
23476
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
23477
+ [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]]
23478
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] Pulitzer::CloneVersion !!!
23479
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
23480
+ [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]]
23481
+ [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]]
23482
+ [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]]
23483
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.1ms) SAVEPOINT active_record_1
23484
+ [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"]]
23485
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.1ms) RELEASE SAVEPOINT active_record_1
23486
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.0ms) SAVEPOINT active_record_1
23487
+ [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]]
23488
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.0ms) RELEASE SAVEPOINT active_record_1
23489
+ [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]]
23490
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.1ms) SAVEPOINT active_record_1
23491
+ [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"]]
23492
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.0ms) RELEASE SAVEPOINT active_record_1
23493
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.0ms) SAVEPOINT active_record_1
23494
+ [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]]
23495
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.0ms) RELEASE SAVEPOINT active_record_1
23496
+ [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]]
23497
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.0ms) SAVEPOINT active_record_1
23498
+ [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"]]
23499
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.1ms) RELEASE SAVEPOINT active_record_1
23500
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.0ms) SAVEPOINT active_record_1
23501
+ [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]]
23502
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.0ms) RELEASE SAVEPOINT active_record_1
23503
+ [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]]
23504
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.0ms) SAVEPOINT active_record_1
23505
+ [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]]
23506
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.0ms) RELEASE SAVEPOINT active_record_1
23507
+ [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.16ms
23508
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* 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]]
23509
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
23510
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
23511
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
23512
+  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]
23513
+  (0.7ms) rollback transaction
23514
+  (0.1ms) begin transaction
23515
+  (0.0ms) commit transaction
23516
+  (0.0ms) begin transaction
23517
+  (0.1ms) SAVEPOINT active_record_1
23518
+ SQL (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"]]
23519
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23520
+  (0.0ms) SAVEPOINT active_record_1
23521
+ Pulitzer::Post Exists (0.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"]]
23522
+ 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"]]
23523
+ 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"]]
23524
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23525
+  (0.1ms) SAVEPOINT active_record_1
23526
+ 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"]]
23527
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23528
+  (0.0ms) SAVEPOINT active_record_1
23529
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1
23530
+ 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"]]
23531
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23532
+  (0.0ms) SAVEPOINT active_record_1
23533
+ SQL (0.1ms) 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"]]
23534
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23535
+  (0.0ms) SAVEPOINT active_record_1
23536
+ Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1
23537
+ 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"]]
23538
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23539
+  (0.1ms) SAVEPOINT active_record_1
23540
+ SQL (0.1ms) 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"]]
23541
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23542
+  (0.0ms) SAVEPOINT active_record_1
23543
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1
23544
+ 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"]]
23545
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23546
+  (0.0ms) SAVEPOINT active_record_1
23547
+ SQL (0.1ms) 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"]]
23548
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23549
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* 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]]
23550
+  (0.0ms) SAVEPOINT active_record_1
23551
+ 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]]
23552
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23553
+  (0.0ms) SAVEPOINT active_record_1
23554
+ 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"]]
23555
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23556
+ [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 4e8f71da-c58f-43ee-821a-c15e54c132bf) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
23557
+ [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
23558
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
23559
+ [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]]
23560
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] Pulitzer::CloneVersion !!!
23561
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
23562
+ [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]]
23563
+ [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]]
23564
+ [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]]
23565
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) SAVEPOINT active_record_1
23566
+ [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"]]
23567
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.1ms) RELEASE SAVEPOINT active_record_1
23568
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) SAVEPOINT active_record_1
23569
+ [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]]
23570
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) RELEASE SAVEPOINT active_record_1
23571
+ [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]]
23572
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.1ms) SAVEPOINT active_record_1
23573
+ [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"]]
23574
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.1ms) RELEASE SAVEPOINT active_record_1
23575
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) SAVEPOINT active_record_1
23576
+ [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]]
23577
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) RELEASE SAVEPOINT active_record_1
23578
+ [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]]
23579
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) SAVEPOINT active_record_1
23580
+ [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"]]
23581
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) RELEASE SAVEPOINT active_record_1
23582
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) SAVEPOINT active_record_1
23583
+ [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]]
23584
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) RELEASE SAVEPOINT active_record_1
23585
+ [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]]
23586
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) SAVEPOINT active_record_1
23587
+ [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]]
23588
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) RELEASE SAVEPOINT active_record_1
23589
+ [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.16ms
23590
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
23591
+ Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]
23592
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
23593
+ Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]
23594
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* 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]]
23595
+  (0.0ms) SAVEPOINT active_record_1
23596
+ 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]]
23597
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23598
+  (0.0ms) SAVEPOINT active_record_1
23599
+ 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"]]
23600
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23601
+ [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 5070a7f4-8675-4e7c-9a6c-f134ee6f5637) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
23602
+ [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
23603
+ [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
23604
+ [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]]
23605
+ [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] Pulitzer::CloneVersion !!!
23606
+ [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
23607
+ [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]]
23608
+ [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]]
23609
+ [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]]
23610
+ [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.1ms) SAVEPOINT active_record_1
23611
+ [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"]]
23612
+ [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) RELEASE SAVEPOINT active_record_1
23613
+ [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) SAVEPOINT active_record_1
23614
+ [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]]
23615
+ [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) RELEASE SAVEPOINT active_record_1
23616
+ [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]]
23617
+ [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) SAVEPOINT active_record_1
23618
+ [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"]]
23619
+ [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) RELEASE SAVEPOINT active_record_1
23620
+ [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) SAVEPOINT active_record_1
23621
+ [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]]
23622
+ [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) RELEASE SAVEPOINT active_record_1
23623
+ [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]]
23624
+ [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) SAVEPOINT active_record_1
23625
+ [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"]]
23626
+ [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) RELEASE SAVEPOINT active_record_1
23627
+ [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) SAVEPOINT active_record_1
23628
+ [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]]
23629
+ [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) RELEASE SAVEPOINT active_record_1
23630
+ [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]]
23631
+ [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) SAVEPOINT active_record_1
23632
+ [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]]
23633
+ [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) RELEASE SAVEPOINT active_record_1
23634
+ [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.46ms
23635
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]
23636
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
23637
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
23638
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
23639
+  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]
23640
+  (0.8ms) rollback transaction
23641
+  (0.1ms) begin transaction
23642
+  (0.0ms) commit transaction
23643
+  (0.0ms) begin transaction
23644
+  (0.0ms) rollback transaction
23645
+  (0.1ms) begin transaction
23646
+  (0.0ms) commit transaction
23647
+  (0.0ms) begin transaction
23648
+  (0.0ms) SAVEPOINT active_record_1
23649
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1
23650
+ 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"]]
23651
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23652
+  (0.4ms) rollback transaction
23653
+  (0.1ms) begin transaction
23654
+  (0.1ms) commit transaction
23655
+  (0.0ms) begin transaction
23656
+  (0.1ms) rollback transaction
23657
+  (0.1ms) begin transaction
23658
+  (0.0ms) commit transaction
23659
+  (0.0ms) begin transaction
23660
+  (0.0ms) rollback transaction
23661
+  (0.1ms) begin transaction
23662
+  (0.0ms) commit transaction
23663
+  (0.0ms) begin transaction
23664
+  (0.1ms) rollback transaction
23665
+  (0.0ms) begin transaction
23666
+  (0.0ms) commit transaction
23667
+  (0.0ms) begin transaction
23668
+  (0.0ms) rollback transaction
23669
+  (0.0ms) begin transaction
23670
+  (0.0ms) commit transaction
23671
+  (0.0ms) begin transaction
23672
+  (0.0ms) SAVEPOINT active_record_1
23673
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1
23674
+ 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"]]
23675
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23676
+  (0.4ms) rollback transaction
23677
+  (0.1ms) begin transaction
23678
+  (0.0ms) commit transaction
23679
+  (0.0ms) begin transaction
23680
+  (0.0ms) SAVEPOINT active_record_1
23681
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1
23682
+ 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"]]
23683
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23684
+  (0.4ms) rollback transaction
23685
+  (0.1ms) begin transaction
23686
+  (0.1ms) commit transaction
23687
+  (0.0ms) begin transaction
23688
+  (0.1ms) SAVEPOINT active_record_1
23689
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1
23690
+ 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"]]
23691
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23692
+  (0.4ms) rollback transaction
23693
+  (0.1ms) begin transaction
23694
+  (0.0ms) commit transaction
23695
+  (0.0ms) begin transaction
23696
+  (0.1ms) SAVEPOINT active_record_1
23697
+ Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1
23698
+ 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"]]
23699
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23700
+  (0.0ms) SAVEPOINT active_record_1
23701
+ 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"]]
23702
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23703
+  (0.6ms) rollback transaction
23704
+  (0.1ms) begin transaction
23705
+  (0.0ms) commit transaction
23706
+  (0.1ms) begin transaction
23707
+  (0.1ms) SAVEPOINT active_record_1
23708
+ Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1
23709
+ 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"]]
23710
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23711
+  (0.0ms) SAVEPOINT active_record_1
23712
+ 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"]]
23713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23714
+  (0.6ms) rollback transaction
23715
+  (0.1ms) begin transaction
23716
+  (0.0ms) commit transaction
23717
+  (0.0ms) begin transaction
23718
+  (0.0ms) SAVEPOINT active_record_1
23719
+ Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1
23720
+ 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"]]
23721
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23722
+  (0.3ms) rollback transaction
23723
+  (0.1ms) begin transaction
23724
+  (0.0ms) commit transaction
23725
+  (0.0ms) begin transaction
23726
+  (0.0ms) SAVEPOINT active_record_1
23727
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1
23728
+ 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"]]
23729
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23730
+  (0.4ms) rollback transaction
23731
+  (0.1ms) begin transaction
23732
+  (0.0ms) commit transaction
23733
+  (0.0ms) begin transaction
23734
+  (0.0ms) SAVEPOINT active_record_1
23735
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1
23736
+ 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"]]
23737
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23738
+  (0.4ms) rollback transaction
23739
+  (0.1ms) begin transaction
23740
+  (0.1ms) commit transaction
23741
+  (0.1ms) begin transaction
23742
+  (0.1ms) SAVEPOINT active_record_1
23743
+ SQL (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"]]
23744
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23745
+ Pulitzer::Post Exists (0.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"]]
23746
+  (0.3ms) rollback transaction
23747
+  (0.1ms) begin transaction
23748
+  (0.0ms) commit transaction
23749
+  (0.0ms) begin transaction
23750
+  (0.0ms) rollback transaction
23751
+  (0.0ms) begin transaction
23752
+  (0.0ms) commit transaction
23753
+  (0.0ms) begin transaction
23754
+  (0.0ms) rollback transaction
23755
+  (0.1ms) begin transaction
23756
+  (0.0ms) commit transaction
23757
+  (0.0ms) begin transaction
23758
+  (0.1ms) SAVEPOINT active_record_1
23759
+ 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"]]
23760
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23761
+  (0.0ms) SAVEPOINT active_record_1
23762
+ Pulitzer::Post Exists (0.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"]]
23763
+ 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"]]
23764
+ 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"]]
23765
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23766
+  (0.6ms) rollback transaction
23767
+  (0.1ms) begin transaction
23768
+  (0.0ms) commit transaction
23769
+  (0.0ms) begin transaction
23770
+  (0.0ms) SAVEPOINT active_record_1
23771
+ SQL (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"]]
23772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23773
+  (0.0ms) SAVEPOINT active_record_1
23774
+ Pulitzer::Post Exists (0.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"]]
23775
+ 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"]]
23776
+ 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"]]
23777
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23778
+  (0.2ms) SAVEPOINT active_record_1
23779
+ 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"]]
23780
+ 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]]
23781
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23782
+  (0.6ms) rollback transaction
23783
+  (0.1ms) begin transaction
23784
+  (0.0ms) commit transaction
23785
+  (0.0ms) begin transaction
23786
+  (0.1ms) SAVEPOINT active_record_1
23787
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1
23788
+ 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"]]
23789
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23790
+  (0.1ms) SAVEPOINT active_record_1
23791
+ SQL (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"]]
23792
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23793
+  (0.0ms) SAVEPOINT active_record_1
23794
+ Pulitzer::Post Exists (0.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"]]
23795
+ 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"]]
23796
+ 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"]]
23797
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23798
+  (0.0ms) SAVEPOINT active_record_1
23799
+ 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"]]
23800
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23801
+  (0.6ms) rollback transaction
23802
+  (0.1ms) begin transaction
23803
+  (0.0ms) commit transaction
23804
+  (0.0ms) begin transaction
23805
+  (0.0ms) rollback transaction
23806
+  (0.0ms) begin transaction
23807
+  (0.0ms) commit transaction
23808
+  (0.0ms) begin transaction
23809
+  (0.1ms) rollback transaction
23810
+  (0.1ms) begin transaction
23811
+  (0.0ms) commit transaction
23812
+  (0.0ms) begin transaction
23813
+  (0.1ms) rollback transaction
23814
+  (0.0ms) begin transaction
23815
+  (0.0ms) commit transaction
23816
+  (0.0ms) begin transaction
23817
+  (0.0ms) rollback transaction
23818
+  (0.1ms) begin transaction
23819
+  (0.0ms) commit transaction
23820
+  (0.0ms) begin transaction
23821
+  (0.0ms) rollback transaction
23822
+  (0.0ms) begin transaction
23823
+  (0.3ms) commit transaction
23824
+  (0.0ms) begin transaction
23825
+  (0.1ms) SAVEPOINT active_record_1
23826
+ 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"]]
23827
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23828
+  (0.1ms) SAVEPOINT active_record_1
23829
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1
23830
+ 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"]]
23831
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23832
+  (0.6ms) rollback transaction
23833
+  (0.1ms) begin transaction
23834
+  (0.1ms) commit transaction
23835
+  (0.1ms) begin transaction
23836
+  (0.1ms) rollback transaction
23837
+  (0.1ms) begin transaction
23838
+  (0.0ms) commit transaction
23839
+  (0.0ms) begin transaction
23840
+  (0.0ms) rollback transaction
23841
+  (0.1ms) begin transaction
23842
+  (0.1ms) commit transaction
23843
+  (0.0ms) begin transaction
23844
+  (0.1ms) rollback transaction
23845
+  (0.2ms) begin transaction
23846
+  (0.1ms) commit transaction
23847
+  (0.1ms) begin transaction
23848
+  (0.2ms) rollback transaction
23849
+  (0.1ms) begin transaction
23850
+  (0.0ms) commit transaction
23851
+  (0.0ms) begin transaction
23852
+  (0.0ms) rollback transaction
23853
+  (0.0ms) begin transaction
23854
+  (0.0ms) commit transaction
23855
+  (0.0ms) begin transaction
23856
+  (0.1ms) rollback transaction
23857
+  (0.0ms) begin transaction
23858
+  (0.0ms) commit transaction
23859
+  (0.0ms) begin transaction
23860
+  (0.1ms) rollback transaction
23861
+  (0.0ms) begin transaction
23862
+  (0.0ms) commit transaction
23863
+  (0.0ms) begin transaction
23864
+  (0.0ms) rollback transaction
23865
+  (0.0ms) begin transaction
23866
+  (0.0ms) commit transaction
23867
+  (0.0ms) begin transaction
23868
+  (0.1ms) rollback transaction
23869
+  (0.0ms) begin transaction
23870
+  (0.0ms) commit transaction
23871
+  (0.0ms) begin transaction
23872
+  (0.0ms) rollback transaction
23873
+  (0.0ms) begin transaction
23874
+  (0.1ms) commit transaction
23875
+  (0.0ms) begin transaction
23876
+  (0.0ms) rollback transaction
23877
+  (0.1ms) begin transaction
23878
+  (0.0ms) commit transaction
23879
+  (0.0ms) begin transaction
23880
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1
23881
+  (0.0ms) rollback transaction
23882
+  (0.1ms) begin transaction
23883
+  (0.0ms) commit transaction
23884
+  (0.0ms) begin transaction
23885
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1
23886
+  (0.1ms) rollback transaction
23887
+  (0.1ms) begin transaction
23888
+  (0.0ms) commit transaction
23889
+  (0.0ms) begin transaction
23890
+ Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1
23891
+  (0.1ms) SAVEPOINT active_record_1
23892
+ 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"]]
23893
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23894
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1
23895
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1
23896
+  (0.4ms) rollback transaction
23897
+  (0.1ms) begin transaction
23898
+  (0.1ms) commit transaction
23899
+  (0.0ms) begin transaction
23900
+  (0.0ms) rollback transaction
23901
+  (0.2ms) begin transaction
23902
+  (0.0ms) commit transaction
23903
+  (0.0ms) begin transaction
23904
+  (0.0ms) rollback transaction
23905
+  (0.1ms) begin transaction
23906
+  (0.0ms) commit transaction
23907
+  (0.0ms) begin transaction
23908
+  (0.0ms) SAVEPOINT active_record_1
23909
+ SQL (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"]]
23910
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23911
+  (0.0ms) SAVEPOINT active_record_1
23912
+ Pulitzer::Post Exists (0.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"]]
23913
+ 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"]]
23914
+ 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"]]
23915
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23916
+  (0.7ms) rollback transaction
23917
+  (0.1ms) begin transaction
23918
+  (0.0ms) commit transaction
23919
+  (0.1ms) begin transaction
23920
+  (0.1ms) rollback transaction
23921
+  (0.1ms) begin transaction
23922
+  (0.0ms) commit transaction
23923
+  (0.0ms) begin transaction
23924
+  (0.0ms) rollback transaction
23925
+  (0.0ms) begin transaction
23926
+  (0.1ms) commit transaction
23927
+  (0.0ms) begin transaction
23928
+  (0.0ms) rollback transaction
23929
+  (0.0ms) begin transaction
23930
+  (0.0ms) commit transaction
23931
+  (0.1ms) begin transaction
23932
+  (0.0ms) rollback transaction
23933
+  (0.1ms) begin transaction
23934
+  (0.0ms) commit transaction
23935
+  (0.0ms) begin transaction
23936
+  (0.0ms) rollback transaction
23937
+  (0.0ms) begin transaction
23938
+  (0.0ms) commit transaction
23939
+  (0.0ms) begin transaction
23940
+  (0.0ms) rollback transaction
23941
+  (0.0ms) begin transaction
23942
+  (0.1ms) commit transaction
23943
+  (0.0ms) begin transaction
23944
+  (0.0ms) SAVEPOINT active_record_1
23945
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1
23946
+ 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"]]
23947
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23948
+  (0.1ms) SAVEPOINT active_record_1
23949
+ SQL (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"]]
23950
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23951
+  (0.0ms) SAVEPOINT active_record_1
23952
+ 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"]]
23953
+ 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"]]
23954
+ 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"]]
23955
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23956
+  (0.0ms) SAVEPOINT active_record_1
23957
+ 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"]]
23958
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23959
+  (0.0ms) SAVEPOINT active_record_1
23960
+ 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"]]
23961
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23962
+  (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"]]
23963
+  (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]]
23964
+ 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"]]
23965
+ Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]
23966
+  (0.7ms) rollback transaction