pulitzer 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54fd0fa0136f609b34b98862ed71797feee860fd
4
- data.tar.gz: 075af04a1bbb69e1ec3046d0c62450f5ce026980
3
+ metadata.gz: d4ba76fb2ab1a9a028fccef98ba535797488e082
4
+ data.tar.gz: 2ac42afaf4b83740e45cbe0b087532c99cd49385
5
5
  SHA512:
6
- metadata.gz: 4b0377b9dc7d0334585a9ec5ab4ee10b71b08feef1b955bd602ce2605fff6d1248c4efa6a1506f7a57ef26e54f93e37bed9dbe1c45efc5e8ee956811d1d1dcf4
7
- data.tar.gz: 2be9075b5238485db8ec72ecc48428682621aadff8a6382b7e6b7bd80844bc8fd1c63baf960486fe154c82044ee8f235f0e0b4dbdff30a41dba0606a436e8ebb
6
+ metadata.gz: 4ddaa9b9e4eefddc29997e39e3e07b383b0a795a3d75ee19b9cf4548d9ac468be847d97731b8762008ee3a84e7923a36c89c4c61b55b9e4a7ec9ee6b70c84be5
7
+ data.tar.gz: 922f6cbb8cf5454cf3102bfa09658541eb0de47b06c336c70c019aaead4c9175ea03d357da13e59fd38c7f57ca711e208590cd5f3e7db4572b622af43148ff23
@@ -34,7 +34,19 @@ body {
34
34
  text-decoration: none;
35
35
  }
36
36
  }
37
+ .pulitzer-fake-link{
38
+ cursor: pointer;
39
+ color: #32638a;
40
+ &:hover{
41
+ text-decoration: underline;
42
+ color: black;
43
+ cursor: pointer;
44
+ }
45
+ &.active{
46
+ color: black;
47
+ }
37
48
 
49
+ }
38
50
  .pulitzer-row {
39
51
  position: relative;
40
52
  float: left;
@@ -30,7 +30,7 @@ module Pulitzer
30
30
  end
31
31
 
32
32
  def full_view_path
33
- Pulitzer.partial_folder + folder_path + '/' + template_path
33
+ Pulitzer.partial_folder + '/' + folder_path + '/' + template_path
34
34
  end
35
35
 
36
36
  def clone_me
@@ -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, :free_form_section_types, :has_free_form_sections?, :has_templated_content_elements?, to: :post_type
8
- delegate :content_elements, :post_tags, :has_label_type, :has_label, :post_tags_for, to: :active_version, allow_nil: true
8
+ delegate :content_elements, :section, :post_tags, :has_label_type, :has_label, :post_tags_for, to: :active_version, allow_nil: true
9
9
  friendly_id :title, use: [:slugged, :finders]
10
10
  after_create :create_preview_version
11
11
 
@@ -38,10 +38,6 @@ module Pulitzer
38
38
  content_elements.template
39
39
  end
40
40
 
41
- def free_form_content_elements
42
- content_elements.free_form
43
- end
44
-
45
41
  def total_processing_elements
46
42
  active_version.content_elements.count + active_version.post_tags.count + active_version.free_form_sections.count + 2
47
43
  end
@@ -1,7 +1,3 @@
1
1
  <div class="pulitzer-row margin-bottom list-item" id="<%= dom_id(content_element) %>">
2
- <% if content_element.empty_body? %>
3
- <%= render partial: '/pulitzer/content_elements/form', locals: { content_element: content_element } %>
4
- <% else %>
5
- <%= render partial: '/pulitzer/content_elements/show', locals: { content_element: content_element } %>
6
- <% end %>
2
+ <%= render partial: '/pulitzer/content_elements/show', locals: { content_element: content_element } %>
7
3
  </div>
@@ -1,5 +1,6 @@
1
1
  <%= f.label :name %>
2
2
  <%= f.text_field :name %>
3
+ <%= f.select :kind, Pulitzer::PostType.kinds.keys.map { |m| [m.humanize, m] }, {}, revealer(dom_id(f.object, :kind), highlander: true) %>
3
4
  <div <%= revealer_target_attrs(dom_id(f.object, :kind)) %>>
4
5
  <div <%= revealer_option_attrs(dom_id(f.object, :kind), trigger: 'template') %>>
5
6
  <%= f.label :plural %>
@@ -9,4 +10,3 @@
9
10
  <%= f.hidden_field :plural, value: true %>
10
11
  </div>
11
12
  </div>
12
- <%= f.select :kind, Pulitzer::PostType.kinds.keys.map { |m| [m.humanize, m] }, {}, revealer(dom_id(f.object, :kind), highlander: true) %>
@@ -5,7 +5,7 @@
5
5
  <li><%= link_to_posts(post_type, 'Index', 'Manage') %></li>
6
6
  <% end %>
7
7
  <li <%= expander("post_type_content_element_types_#{dom_id(post_type)}") %>>
8
- <%= link_to "Template", '#', class: 'toggle-post-type-content-elements', data: { post_types: post_type.id } %>
8
+ <span class='toggle-post-type-content-elements pulitzer-fake-link' data-post-types="<%= post_type.id %>">Template</span>
9
9
  </li>
10
10
  <li>
11
11
  <% if Pulitzer.skip_metadata_auth? || self.instance_eval(&Pulitzer.metadata_closure) %>
@@ -31,14 +31,16 @@
31
31
  <%= ajax_link 'add a new content element for ' + post_type.name, new_post_type_content_element_type_path(post_type_id: post_type.id), {}, "#new_post_type_content_element_type_#{dom_id(post_type)}" %>
32
32
  <div id="new_post_type_content_element_type_<%= dom_id(post_type) %>"></div>
33
33
 
34
- <h5>Free Form Sections</h5>
35
- <div id="<%= dom_id(post_type, :free_form_section_types_container) %>">
36
- <% post_type.free_form_section_types.each do |ffst| %>
37
- <%= render partial: '/pulitzer/free_form_section_types/show_wrapper', locals: {ffst: ffst} %>
38
- <% end %>
39
- </div>
40
- <%= ajax_link 'add a new section for ' + post_type.name, new_free_form_section_type_path(post_type_id: post_type.id), {}, dom_target(post_type, :new_free_form_section_type) %>
41
- <div id="<%= dom_id(post_type, :new_free_form_section_type) %>"></div>
34
+ <% unless post_type.partial? %>
35
+ <h5>Free Form Sections</h5>
36
+ <div id="<%= dom_id(post_type, :free_form_section_types_container) %>">
37
+ <% post_type.free_form_section_types.each do |ffst| %>
38
+ <%= render partial: '/pulitzer/free_form_section_types/show_wrapper', locals: {ffst: ffst} %>
39
+ <% end %>
40
+ </div>
41
+ <%= ajax_link 'add a new section for ' + post_type.name, new_free_form_section_type_path(post_type_id: post_type.id), {}, dom_target(post_type, :new_free_form_section_type) %>
42
+ <div id="<%= dom_id(post_type, :new_free_form_section_type) %>"></div>
43
+ <% end %>
42
44
 
43
45
  <% if post_type.partial? %>
44
46
  <h5>Layouts</h5>
@@ -1,3 +1,3 @@
1
1
  module Pulitzer
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
Binary file
@@ -49896,3 +49896,1213 @@ Pulitzer::CloneVersion !!!
49896
49896
  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"]]
49897
49897
  Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]
49898
49898
   (0.7ms) rollback transaction
49899
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
49900
+  (1.2ms) DELETE FROM "pulitzer_content_element_types";
49901
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
49902
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types';
49903
+  (1.6ms) DELETE FROM "pulitzer_posts";
49904
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
49905
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts';
49906
+  (0.9ms) DELETE FROM "pulitzer_tags";
49907
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
49908
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_tags';
49909
+  (0.9ms) DELETE FROM "pulitzer_post_type_content_element_types";
49910
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
49911
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_type_content_element_types';
49912
+  (0.8ms) DELETE FROM "search_locations";
49913
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
49914
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';
49915
+  (0.9ms) DELETE FROM "pulitzer_versions";
49916
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
49917
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions';
49918
+  (0.9ms) DELETE FROM "pulitzer_content_elements";
49919
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
49920
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements';
49921
+  (1.1ms) DELETE FROM "pulitzer_post_tags";
49922
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
49923
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags';
49924
+  (0.9ms) DELETE FROM "pulitzer_post_types";
49925
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
49926
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';
49927
+  (0.7ms) DELETE FROM "pulitzer_partials";
49928
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
49929
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';
49930
+  (0.9ms) DELETE FROM "pulitzer_free_form_section_types";
49931
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
49932
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_free_form_section_types';
49933
+  (0.6ms) DELETE FROM "pulitzer_free_form_sections";
49934
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
49935
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_free_form_sections';
49936
+  (0.8ms) DELETE FROM "pulitzer_layouts";
49937
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
49938
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_layouts';
49939
+  (0.1ms) begin transaction
49940
+  (0.1ms) commit transaction
49941
+  (0.1ms) begin transaction
49942
+  (0.1ms) SAVEPOINT active_record_1
49943
+ SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-19 16:15:02.878800"], ["updated_at", "2016-05-19 16:15:02.878800"]]
49944
+  (0.1ms) RELEASE SAVEPOINT active_record_1
49945
+ Processing by Pulitzer::FreeFormSectionTypesController#new as HTML
49946
+ Parameters: {"post_type_id"=>"1"}
49947
+ Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]
49948
+ Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]
49949
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (7.9ms)
49950
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (30.6ms)
49951
+ Completed 200 OK in 64ms (Views: 40.3ms | ActiveRecord: 0.4ms)
49952
+  (0.3ms) rollback transaction
49953
+  (0.1ms) begin transaction
49954
+  (0.1ms) commit transaction
49955
+  (0.0ms) begin transaction
49956
+  (0.0ms) SAVEPOINT active_record_1
49957
+ SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-19 16:15:02.959484"], ["updated_at", "2016-05-19 16:15:02.959484"]]
49958
+  (0.0ms) RELEASE SAVEPOINT active_record_1
49959
+ Processing by Pulitzer::FreeFormSectionTypesController#create as HTML
49960
+ Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}}
49961
+ Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]
49962
+  (0.1ms) SAVEPOINT active_record_1
49963
+ SQL (0.5ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]
49964
+  (0.1ms) RELEASE SAVEPOINT active_record_1
49965
+ Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]
49966
+ Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]]
49967
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (7.2ms)
49968
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (9.3ms)
49969
+ Completed 200 OK in 18ms (Views: 11.0ms | ActiveRecord: 1.0ms)
49970
+ Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1
49971
+  (0.5ms) rollback transaction
49972
+  (0.1ms) begin transaction
49973
+  (0.1ms) commit transaction
49974
+  (0.0ms) begin transaction
49975
+  (0.0ms) SAVEPOINT active_record_1
49976
+ SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-19 16:15:02.987249"], ["updated_at", "2016-05-19 16:15:02.987249"]]
49977
+  (0.0ms) RELEASE SAVEPOINT active_record_1
49978
+  (0.0ms) SAVEPOINT active_record_1
49979
+ SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]
49980
+  (0.0ms) RELEASE SAVEPOINT active_record_1
49981
+ Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML
49982
+ Parameters: {"id"=>"1"}
49983
+ Pulitzer::FreeFormSectionType Load (0.2ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]
49984
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms)
49985
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.8ms)
49986
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (12.7ms)
49987
+ Completed 200 OK in 16ms (Views: 14.5ms | ActiveRecord: 0.2ms)
49988
+  (0.7ms) rollback transaction
49989
+  (0.1ms) begin transaction
49990
+  (0.0ms) commit transaction
49991
+  (0.0ms) begin transaction
49992
+  (0.0ms) SAVEPOINT active_record_1
49993
+ SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-19 16:15:03.014919"], ["updated_at", "2016-05-19 16:15:03.014919"]]
49994
+  (0.1ms) RELEASE SAVEPOINT active_record_1
49995
+  (0.1ms) SAVEPOINT active_record_1
49996
+ SQL (0.5ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]
49997
+  (0.1ms) RELEASE SAVEPOINT active_record_1
49998
+ Processing by Pulitzer::FreeFormSectionTypesController#update as HTML
49999
+ Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"}
50000
+ Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]
50001
+  (0.1ms) SAVEPOINT active_record_1
50002
+ SQL (0.3ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]
50003
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50004
+ Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]
50005
+ Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]]
50006
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (8.5ms)
50007
+ Completed 200 OK in 16ms (Views: 9.0ms | ActiveRecord: 0.6ms)
50008
+ Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]
50009
+  (0.7ms) rollback transaction
50010
+  (0.1ms) begin transaction
50011
+  (0.1ms) commit transaction
50012
+  (0.1ms) begin transaction
50013
+  (0.1ms) SAVEPOINT active_record_1
50014
+ SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-19 16:15:03.046374"], ["updated_at", "2016-05-19 16:15:03.046374"]]
50015
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50016
+  (0.0ms) SAVEPOINT active_record_1
50017
+ SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]
50018
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50019
+ Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML
50020
+ Parameters: {"id"=>"1"}
50021
+ Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]
50022
+  (0.1ms) SAVEPOINT active_record_1
50023
+ SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]
50024
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50025
+ Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]
50026
+ Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]]
50027
+ Rendered text template (0.0ms)
50028
+ Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.3ms)
50029
+ Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]
50030
+  (0.5ms) rollback transaction
50031
+  (0.1ms) begin transaction
50032
+  (0.0ms) commit transaction
50033
+  (0.0ms) begin transaction
50034
+  (0.1ms) SAVEPOINT active_record_1
50035
+ SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-19 16:15:03.068085"], ["updated_at", "2016-05-19 16:15:03.068085"]]
50036
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50037
+  (0.0ms) SAVEPOINT active_record_1
50038
+ SQL (0.6ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]
50039
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50040
+ Processing by Pulitzer::PartialsController#new as HTML
50041
+ Parameters: {"partial"=>{"free_form_section_id"=>"1"}}
50042
+ Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]
50043
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms)
50044
+ Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]]
50045
+ Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]]
50046
+ Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]]
50047
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (13.1ms)
50048
+ Completed 200 OK in 35ms (Views: 18.0ms | ActiveRecord: 0.8ms)
50049
+  (0.6ms) rollback transaction
50050
+  (0.1ms) begin transaction
50051
+  (0.0ms) commit transaction
50052
+  (0.0ms) begin transaction
50053
+  (0.0ms) SAVEPOINT active_record_1
50054
+ SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-19 16:15:03.119321"], ["updated_at", "2016-05-19 16:15:03.119321"]]
50055
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50056
+  (0.0ms) SAVEPOINT active_record_1
50057
+ SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]
50058
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50059
+ Processing by Pulitzer::PartialsController#create as HTML
50060
+ Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}}
50061
+ Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]
50062
+  (0.1ms) SAVEPOINT active_record_1
50063
+ Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]
50064
+  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]]
50065
+ SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]
50066
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50067
+ Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]
50068
+ 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]]
50069
+ Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]]
50070
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.4ms)
50071
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (9.1ms)
50072
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (10.9ms)
50073
+ Completed 200 OK in 24ms (Views: 12.4ms | ActiveRecord: 1.2ms)
50074
+ Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1
50075
+  (0.6ms) rollback transaction
50076
+  (0.1ms) begin transaction
50077
+  (0.0ms) commit transaction
50078
+  (0.0ms) begin transaction
50079
+  (0.0ms) SAVEPOINT active_record_1
50080
+ SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]
50081
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50082
+  (0.0ms) SAVEPOINT active_record_1
50083
+ SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-19 16:15:03.157588"], ["updated_at", "2016-05-19 16:15:03.157588"]]
50084
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50085
+  (0.0ms) SAVEPOINT active_record_1
50086
+ Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]
50087
+  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]]
50088
+ SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]
50089
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50090
+ Processing by Pulitzer::PartialsController#edit as HTML
50091
+ Parameters: {"id"=>"1"}
50092
+ Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]
50093
+ Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]
50094
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms)
50095
+ Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]]
50096
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (12.9ms)
50097
+ Completed 200 OK in 16ms (Views: 14.5ms | ActiveRecord: 0.2ms)
50098
+  (0.7ms) rollback transaction
50099
+  (0.1ms) begin transaction
50100
+  (0.0ms) commit transaction
50101
+  (0.0ms) begin transaction
50102
+  (0.0ms) SAVEPOINT active_record_1
50103
+ SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-19 16:15:03.186544"], ["updated_at", "2016-05-19 16:15:03.186544"]]
50104
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50105
+  (0.1ms) SAVEPOINT active_record_1
50106
+ SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]
50107
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50108
+  (0.1ms) SAVEPOINT active_record_1
50109
+ SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-19 16:15:03.191871"], ["updated_at", "2016-05-19 16:15:03.191871"]]
50110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50111
+  (0.1ms) SAVEPOINT active_record_1
50112
+ Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]
50113
+  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]]
50114
+ SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]
50115
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50116
+ Processing by Pulitzer::PartialsController#update as HTML
50117
+ Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"}
50118
+ Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]
50119
+  (0.1ms) SAVEPOINT active_record_1
50120
+ SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]
50121
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50122
+ Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]
50123
+ Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]]
50124
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.3ms)
50125
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (5.0ms)
50126
+ Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.5ms)
50127
+ Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]
50128
+ Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]
50129
+  (0.5ms) rollback transaction
50130
+  (0.1ms) begin transaction
50131
+  (0.0ms) commit transaction
50132
+  (0.0ms) begin transaction
50133
+  (0.1ms) SAVEPOINT active_record_1
50134
+ SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:03.223154"], ["updated_at", "2016-05-19 16:15:03.223154"]]
50135
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50136
+  (0.0ms) SAVEPOINT active_record_1
50137
+ Pulitzer::Post Exists (0.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"]]
50138
+ SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-19 16:15:03.350821"], ["updated_at", "2016-05-19 16:15:03.350821"]]
50139
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.354632"], ["updated_at", "2016-05-19 16:15:03.354632"]]
50140
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50141
+  (0.1ms) SAVEPOINT active_record_1
50142
+ SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.366908"], ["updated_at", "2016-05-19 16:15:03.366908"]]
50143
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50144
+  (0.1ms) SAVEPOINT active_record_1
50145
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1
50146
+ SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-19 16:15:03.381716"], ["updated_at", "2016-05-19 16:15:03.381716"]]
50147
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50148
+  (0.1ms) SAVEPOINT active_record_1
50149
+ SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.385447"], ["updated_at", "2016-05-19 16:15:03.385447"]]
50150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50151
+  (0.0ms) SAVEPOINT active_record_1
50152
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1
50153
+ SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-19 16:15:03.389331"], ["updated_at", "2016-05-19 16:15:03.389331"]]
50154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50155
+  (0.0ms) SAVEPOINT active_record_1
50156
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.391324"], ["updated_at", "2016-05-19 16:15:03.391324"]]
50157
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50158
+  (0.0ms) SAVEPOINT active_record_1
50159
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1
50160
+ SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-19 16:15:03.395076"], ["updated_at", "2016-05-19 16:15:03.395076"]]
50161
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50162
+  (0.0ms) SAVEPOINT active_record_1
50163
+ SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.397037"], ["updated_at", "2016-05-19 16:15:03.397037"]]
50164
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50165
+  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]
50166
+  (0.1ms) SAVEPOINT active_record_1
50167
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-19 16:15:03.402772"], ["updated_at", "2016-05-19 16:15:03.402772"]]
50168
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50169
+ Pulitzer::CloneVersion !!!
50170
+ /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
50171
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]]
50172
+ Pulitzer::ContentElement Load (0.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]]
50173
+ 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]]
50174
+  (0.1ms) SAVEPOINT active_record_1
50175
+ SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-19 16:15:03.385447"], ["updated_at", "2016-05-19 16:15:03.385447"]]
50176
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50177
+  (0.0ms) SAVEPOINT active_record_1
50178
+ SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.412453"], ["id", 4]]
50179
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50180
+ 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]]
50181
+  (0.1ms) SAVEPOINT active_record_1
50182
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-19 16:15:03.391324"], ["updated_at", "2016-05-19 16:15:03.391324"]]
50183
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50184
+  (0.0ms) SAVEPOINT active_record_1
50185
+ SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.423043"], ["id", 5]]
50186
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50187
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]
50188
+  (0.1ms) SAVEPOINT active_record_1
50189
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-19 16:15:03.397037"], ["updated_at", "2016-05-19 16:15:03.397037"]]
50190
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50191
+  (0.0ms) SAVEPOINT active_record_1
50192
+ SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.431722"], ["id", 6]]
50193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50194
+ Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]
50195
+ Pulitzer::PostTag Load (0.2ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]
50196
+  (0.0ms) SAVEPOINT active_record_1
50197
+ SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-19 16:15:03.444509"], ["id", 3]]
50198
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50199
+  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]
50200
+  (1.1ms) rollback transaction
50201
+  (0.1ms) begin transaction
50202
+  (0.0ms) commit transaction
50203
+  (0.0ms) begin transaction
50204
+  (0.1ms) SAVEPOINT active_record_1
50205
+ SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:03.464742"], ["updated_at", "2016-05-19 16:15:03.464742"]]
50206
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50207
+  (0.1ms) SAVEPOINT active_record_1
50208
+ Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]]
50209
+ SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-19 16:15:03.470232"], ["updated_at", "2016-05-19 16:15:03.470232"]]
50210
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.476134"], ["updated_at", "2016-05-19 16:15:03.476134"]]
50211
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50212
+  (0.0ms) SAVEPOINT active_record_1
50213
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.480151"], ["updated_at", "2016-05-19 16:15:03.480151"]]
50214
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50215
+  (0.0ms) SAVEPOINT active_record_1
50216
+ SQL (0.2ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]
50217
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50218
+  (0.0ms) SAVEPOINT active_record_1
50219
+ SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]
50220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50221
+  (0.0ms) SAVEPOINT active_record_1
50222
+ SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]
50223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50224
+  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]
50225
+  (0.0ms) SAVEPOINT active_record_1
50226
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-19 16:15:03.491684"], ["updated_at", "2016-05-19 16:15:03.491684"]]
50227
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50228
+ Pulitzer::CloneVersion !!!
50229
+ /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
50230
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]]
50231
+ Pulitzer::ContentElement Load (0.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]]
50232
+ Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]
50233
+  (0.1ms) SAVEPOINT active_record_1
50234
+ SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]
50235
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50236
+ Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]]
50237
+  (0.0ms) SAVEPOINT active_record_1
50238
+ SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]
50239
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50240
+  (0.0ms) SAVEPOINT active_record_1
50241
+ SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]
50242
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50243
+ Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 2]]
50244
+  (0.0ms) SAVEPOINT active_record_1
50245
+ SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]
50246
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50247
+  (0.0ms) SAVEPOINT active_record_1
50248
+ SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]
50249
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50250
+ Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 3]]
50251
+  (0.0ms) SAVEPOINT active_record_1
50252
+ SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]
50253
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50254
+ Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]
50255
+  (0.0ms) SAVEPOINT active_record_1
50256
+ SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-19 16:15:03.518899"], ["id", 3]]
50257
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50258
+  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]
50259
+  (0.6ms) rollback transaction
50260
+  (0.1ms) begin transaction
50261
+  (0.0ms) commit transaction
50262
+  (0.0ms) begin transaction
50263
+  (0.1ms) SAVEPOINT active_record_1
50264
+ SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:03.536019"], ["updated_at", "2016-05-19 16:15:03.536019"]]
50265
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50266
+  (0.0ms) SAVEPOINT active_record_1
50267
+ Pulitzer::Post Exists (0.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"]]
50268
+ SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-19 16:15:03.538843"], ["updated_at", "2016-05-19 16:15:03.538843"]]
50269
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.540828"], ["updated_at", "2016-05-19 16:15:03.540828"]]
50270
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50271
+  (0.1ms) SAVEPOINT active_record_1
50272
+ SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.542577"], ["updated_at", "2016-05-19 16:15:03.542577"]]
50273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50274
+  (0.0ms) SAVEPOINT active_record_1
50275
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1
50276
+ SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-19 16:15:03.545956"], ["updated_at", "2016-05-19 16:15:03.545956"]]
50277
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50278
+  (0.0ms) SAVEPOINT active_record_1
50279
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.547602"], ["updated_at", "2016-05-19 16:15:03.547602"]]
50280
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50281
+  (0.0ms) SAVEPOINT active_record_1
50282
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1
50283
+ SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-19 16:15:03.550452"], ["updated_at", "2016-05-19 16:15:03.550452"]]
50284
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50285
+  (0.0ms) SAVEPOINT active_record_1
50286
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.552517"], ["updated_at", "2016-05-19 16:15:03.552517"]]
50287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50288
+  (0.1ms) SAVEPOINT active_record_1
50289
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1
50290
+ SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-19 16:15:03.555872"], ["updated_at", "2016-05-19 16:15:03.555872"]]
50291
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50292
+  (0.0ms) SAVEPOINT active_record_1
50293
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.557547"], ["updated_at", "2016-05-19 16:15:03.557547"]]
50294
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50295
+  (0.0ms) SAVEPOINT active_record_1
50296
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-19 16:15:03.559527"], ["updated_at", "2016-05-19 16:15:03.559527"]]
50297
+  (0.2ms) RELEASE SAVEPOINT active_record_1
50298
+ Pulitzer::CloneVersion !!!
50299
+ /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
50300
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]]
50301
+ Pulitzer::ContentElement Load (0.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]]
50302
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]
50303
+  (0.1ms) SAVEPOINT active_record_1
50304
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-19 16:15:03.547602"], ["updated_at", "2016-05-19 16:15:03.547602"]]
50305
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50306
+  (0.0ms) SAVEPOINT active_record_1
50307
+ SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.569724"], ["id", 4]]
50308
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50309
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]
50310
+  (0.0ms) SAVEPOINT active_record_1
50311
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-19 16:15:03.552517"], ["updated_at", "2016-05-19 16:15:03.552517"]]
50312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50313
+  (0.0ms) SAVEPOINT active_record_1
50314
+ SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.574508"], ["id", 5]]
50315
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50316
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]
50317
+  (0.1ms) SAVEPOINT active_record_1
50318
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-19 16:15:03.557547"], ["updated_at", "2016-05-19 16:15:03.557547"]]
50319
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50320
+  (0.0ms) SAVEPOINT active_record_1
50321
+ SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.580308"], ["id", 6]]
50322
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50323
+ Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]
50324
+ Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]
50325
+  (0.1ms) SAVEPOINT active_record_1
50326
+ SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-19 16:15:03.583824"], ["id", 3]]
50327
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50328
+ 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]]
50329
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]
50330
+  (0.6ms) rollback transaction
50331
+  (0.1ms) begin transaction
50332
+  (0.0ms) commit transaction
50333
+  (0.0ms) begin transaction
50334
+  (0.1ms) SAVEPOINT active_record_1
50335
+ SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:03.594167"], ["updated_at", "2016-05-19 16:15:03.594167"]]
50336
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50337
+  (0.0ms) SAVEPOINT active_record_1
50338
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1
50339
+ SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-19 16:15:03.601369"], ["updated_at", "2016-05-19 16:15:03.601369"]]
50340
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50341
+  (0.0ms) SAVEPOINT active_record_1
50342
+ SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-19 16:15:03.604664"], ["updated_at", "2016-05-19 16:15:03.604664"]]
50343
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50344
+  (0.0ms) SAVEPOINT active_record_1
50345
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1
50346
+ SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-19 16:15:03.607178"], ["updated_at", "2016-05-19 16:15:03.607178"]]
50347
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50348
+  (0.0ms) SAVEPOINT active_record_1
50349
+ SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-19 16:15:03.608671"], ["updated_at", "2016-05-19 16:15:03.608671"]]
50350
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50351
+  (0.1ms) SAVEPOINT active_record_1
50352
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1
50353
+ SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-19 16:15:03.611854"], ["updated_at", "2016-05-19 16:15:03.611854"]]
50354
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50355
+  (0.1ms) SAVEPOINT active_record_1
50356
+ SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-19 16:15:03.614153"], ["updated_at", "2016-05-19 16:15:03.614153"]]
50357
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50358
+ SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]
50359
+  (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]]
50360
+  (0.1ms) SAVEPOINT active_record_1
50361
+ SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]
50362
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50363
+  (0.1ms) SAVEPOINT active_record_1
50364
+ Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]
50365
+  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]]
50366
+ SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]
50367
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50368
+  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]]
50369
+ Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]
50370
+ 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]]
50371
+  (0.1ms) SAVEPOINT active_record_1
50372
+ 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]]
50373
+ SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-19 16:15:03.630057"], ["updated_at", "2016-05-19 16:15:03.630057"]]
50374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50375
+  (0.0ms) SAVEPOINT active_record_1
50376
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]
50377
+ SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-19 16:15:03.634060"], ["updated_at", "2016-05-19 16:15:03.634060"]]
50378
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50379
+  (0.0ms) SAVEPOINT active_record_1
50380
+ 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]]
50381
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-19 16:15:03.639199"], ["updated_at", "2016-05-19 16:15:03.639199"]]
50382
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50383
+  (0.7ms) rollback transaction
50384
+  (0.1ms) begin transaction
50385
+  (0.0ms) commit transaction
50386
+  (0.0ms) begin transaction
50387
+  (0.0ms) SAVEPOINT active_record_1
50388
+ SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:03.645516"], ["updated_at", "2016-05-19 16:15:03.645516"]]
50389
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50390
+  (0.1ms) SAVEPOINT active_record_1
50391
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1
50392
+ SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-19 16:15:03.649439"], ["updated_at", "2016-05-19 16:15:03.649439"]]
50393
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50394
+  (0.0ms) SAVEPOINT active_record_1
50395
+ SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-19 16:15:03.651579"], ["updated_at", "2016-05-19 16:15:03.651579"]]
50396
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50397
+  (0.1ms) SAVEPOINT active_record_1
50398
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1
50399
+ SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-19 16:15:03.655199"], ["updated_at", "2016-05-19 16:15:03.655199"]]
50400
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50401
+  (0.0ms) SAVEPOINT active_record_1
50402
+ SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-19 16:15:03.656698"], ["updated_at", "2016-05-19 16:15:03.656698"]]
50403
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50404
+  (0.0ms) SAVEPOINT active_record_1
50405
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1
50406
+ SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-19 16:15:03.659167"], ["updated_at", "2016-05-19 16:15:03.659167"]]
50407
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50408
+  (0.0ms) SAVEPOINT active_record_1
50409
+ SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-19 16:15:03.661226"], ["updated_at", "2016-05-19 16:15:03.661226"]]
50410
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50411
+  (0.0ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]
50412
+  (0.1ms) SAVEPOINT active_record_1
50413
+ Pulitzer::Post Exists (0.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"]]
50414
+ SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-19 16:15:03.665235"], ["updated_at", "2016-05-19 16:15:03.665235"]]
50415
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.667680"], ["updated_at", "2016-05-19 16:15:03.667680"]]
50416
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50417
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50418
+  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]
50419
+ 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]]
50420
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50421
+  (0.1ms) SAVEPOINT active_record_1
50422
+ Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]
50423
+ SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-19 16:15:03.675686"], ["updated_at", "2016-05-19 16:15:03.675686"]]
50424
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50425
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50426
+  (0.1ms) SAVEPOINT active_record_1
50427
+ 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]]
50428
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-19 16:15:03.681021"], ["updated_at", "2016-05-19 16:15:03.681021"]]
50429
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50430
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50431
+  (0.0ms) SAVEPOINT active_record_1
50432
+ 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]]
50433
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-19 16:15:03.687139"], ["updated_at", "2016-05-19 16:15:03.687139"]]
50434
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50435
+ Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]]
50436
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50437
+  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]
50438
+  (0.7ms) rollback transaction
50439
+  (0.1ms) begin transaction
50440
+  (0.0ms) commit transaction
50441
+  (0.0ms) begin transaction
50442
+  (0.1ms) SAVEPOINT active_record_1
50443
+ SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:03.695289"], ["updated_at", "2016-05-19 16:15:03.695289"]]
50444
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50445
+  (0.0ms) SAVEPOINT active_record_1
50446
+ SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]
50447
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50448
+  (0.0ms) SAVEPOINT active_record_1
50449
+ SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]
50450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50451
+  (0.0ms) SAVEPOINT active_record_1
50452
+ SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]
50453
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50454
+  (0.1ms) SAVEPOINT active_record_1
50455
+ Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]]
50456
+ SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-05-19 16:15:03.703101"], ["updated_at", "2016-05-19 16:15:03.703101"]]
50457
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.704874"], ["updated_at", "2016-05-19 16:15:03.704874"]]
50458
+  (0.2ms) RELEASE SAVEPOINT active_record_1
50459
+  (0.2ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]]
50460
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50461
+  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]
50462
+ Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]
50463
+ 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]]
50464
+ Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]]
50465
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50466
+  (0.1ms) SAVEPOINT active_record_1
50467
+ SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]
50468
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50469
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50470
+  (0.0ms) SAVEPOINT active_record_1
50471
+ SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]
50472
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50473
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50474
+  (0.1ms) SAVEPOINT active_record_1
50475
+ SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]
50476
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50477
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50478
+  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]
50479
+  (0.7ms) rollback transaction
50480
+  (0.1ms) begin transaction
50481
+  (0.0ms) commit transaction
50482
+  (0.0ms) begin transaction
50483
+  (0.0ms) SAVEPOINT active_record_1
50484
+ SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:03.726873"], ["updated_at", "2016-05-19 16:15:03.726873"]]
50485
+  (0.2ms) RELEASE SAVEPOINT active_record_1
50486
+  (0.1ms) SAVEPOINT active_record_1
50487
+ Pulitzer::Post Exists (0.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"]]
50488
+ SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-19 16:15:03.731126"], ["updated_at", "2016-05-19 16:15:03.731126"]]
50489
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.734008"], ["updated_at", "2016-05-19 16:15:03.734008"]]
50490
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50491
+  (0.1ms) SAVEPOINT active_record_1
50492
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.736054"], ["updated_at", "2016-05-19 16:15:03.736054"]]
50493
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50494
+  (0.0ms) SAVEPOINT active_record_1
50495
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1
50496
+ SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-19 16:15:03.738928"], ["updated_at", "2016-05-19 16:15:03.738928"]]
50497
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50498
+  (0.0ms) SAVEPOINT active_record_1
50499
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.740479"], ["updated_at", "2016-05-19 16:15:03.740479"]]
50500
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50501
+  (0.1ms) SAVEPOINT active_record_1
50502
+ Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1
50503
+ SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-19 16:15:03.744750"], ["updated_at", "2016-05-19 16:15:03.744750"]]
50504
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50505
+  (0.0ms) SAVEPOINT active_record_1
50506
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.746513"], ["updated_at", "2016-05-19 16:15:03.746513"]]
50507
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50508
+  (0.0ms) SAVEPOINT active_record_1
50509
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1
50510
+ SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-19 16:15:03.749436"], ["updated_at", "2016-05-19 16:15:03.749436"]]
50511
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50512
+  (0.0ms) SAVEPOINT active_record_1
50513
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.751093"], ["updated_at", "2016-05-19 16:15:03.751093"]]
50514
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50515
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]
50516
+  (0.0ms) SAVEPOINT active_record_1
50517
+ SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-19 16:15:03.754456"], ["id", 2]]
50518
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50519
+  (0.0ms) SAVEPOINT active_record_1
50520
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-19 16:15:03.756734"], ["updated_at", "2016-05-19 16:15:03.756734"]]
50521
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50522
+ [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
50523
+ [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
50524
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
50525
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]
50526
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Pulitzer::CloneVersion !!!
50527
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
50528
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]]
50529
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]]
50530
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]
50531
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.1ms) SAVEPOINT active_record_1
50532
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-19 16:15:03.740479"], ["updated_at", "2016-05-19 16:15:03.740479"]]
50533
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.1ms) RELEASE SAVEPOINT active_record_1
50534
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) SAVEPOINT active_record_1
50535
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.770769"], ["id", 4]]
50536
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) RELEASE SAVEPOINT active_record_1
50537
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]
50538
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) SAVEPOINT active_record_1
50539
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-19 16:15:03.746513"], ["updated_at", "2016-05-19 16:15:03.746513"]]
50540
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) RELEASE SAVEPOINT active_record_1
50541
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) SAVEPOINT active_record_1
50542
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.775390"], ["id", 5]]
50543
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) RELEASE SAVEPOINT active_record_1
50544
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]
50545
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) SAVEPOINT active_record_1
50546
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-19 16:15:03.751093"], ["updated_at", "2016-05-19 16:15:03.751093"]]
50547
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) RELEASE SAVEPOINT active_record_1
50548
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) SAVEPOINT active_record_1
50549
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.780576"], ["id", 6]]
50550
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) RELEASE SAVEPOINT active_record_1
50551
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]
50552
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]
50553
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) SAVEPOINT active_record_1
50554
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-19 16:15:03.782954"], ["id", 3]]
50555
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.1ms) RELEASE SAVEPOINT active_record_1
50556
+ [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.34ms
50557
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]
50558
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50559
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50560
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50561
+  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]
50562
+  (0.7ms) rollback transaction
50563
+  (0.1ms) begin transaction
50564
+  (0.0ms) commit transaction
50565
+  (0.0ms) begin transaction
50566
+  (0.0ms) SAVEPOINT active_record_1
50567
+ SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:03.797401"], ["updated_at", "2016-05-19 16:15:03.797401"]]
50568
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50569
+  (0.0ms) SAVEPOINT active_record_1
50570
+ Pulitzer::Post Exists (0.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"]]
50571
+ SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-19 16:15:03.800504"], ["updated_at", "2016-05-19 16:15:03.800504"]]
50572
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.802935"], ["updated_at", "2016-05-19 16:15:03.802935"]]
50573
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50574
+  (0.0ms) SAVEPOINT active_record_1
50575
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.805058"], ["updated_at", "2016-05-19 16:15:03.805058"]]
50576
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50577
+  (0.0ms) SAVEPOINT active_record_1
50578
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1
50579
+ SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-19 16:15:03.807784"], ["updated_at", "2016-05-19 16:15:03.807784"]]
50580
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50581
+  (0.0ms) SAVEPOINT active_record_1
50582
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.809314"], ["updated_at", "2016-05-19 16:15:03.809314"]]
50583
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50584
+  (0.1ms) SAVEPOINT active_record_1
50585
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1
50586
+ SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-19 16:15:03.812757"], ["updated_at", "2016-05-19 16:15:03.812757"]]
50587
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50588
+  (0.1ms) SAVEPOINT active_record_1
50589
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.814472"], ["updated_at", "2016-05-19 16:15:03.814472"]]
50590
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50591
+  (0.0ms) SAVEPOINT active_record_1
50592
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1
50593
+ SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-19 16:15:03.817685"], ["updated_at", "2016-05-19 16:15:03.817685"]]
50594
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50595
+  (0.0ms) SAVEPOINT active_record_1
50596
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.819501"], ["updated_at", "2016-05-19 16:15:03.819501"]]
50597
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50598
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]
50599
+  (0.1ms) SAVEPOINT active_record_1
50600
+ SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-19 16:15:03.822437"], ["id", 2]]
50601
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50602
+  (0.0ms) SAVEPOINT active_record_1
50603
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-19 16:15:03.824365"], ["updated_at", "2016-05-19 16:15:03.824365"]]
50604
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50605
+ [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: be561d7f-d740-4c38-bef2-702e54ba7c53) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
50606
+ [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
50607
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
50608
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]
50609
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Pulitzer::CloneVersion !!!
50610
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
50611
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]]
50612
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]]
50613
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]
50614
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.1ms) SAVEPOINT active_record_1
50615
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-19 16:15:03.809314"], ["updated_at", "2016-05-19 16:15:03.809314"]]
50616
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.2ms) RELEASE SAVEPOINT active_record_1
50617
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.1ms) SAVEPOINT active_record_1
50618
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.835718"], ["id", 4]]
50619
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.0ms) RELEASE SAVEPOINT active_record_1
50620
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]
50621
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.1ms) SAVEPOINT active_record_1
50622
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-19 16:15:03.814472"], ["updated_at", "2016-05-19 16:15:03.814472"]]
50623
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.0ms) RELEASE SAVEPOINT active_record_1
50624
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.0ms) SAVEPOINT active_record_1
50625
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.841125"], ["id", 5]]
50626
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.1ms) RELEASE SAVEPOINT active_record_1
50627
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]
50628
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.1ms) SAVEPOINT active_record_1
50629
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-19 16:15:03.819501"], ["updated_at", "2016-05-19 16:15:03.819501"]]
50630
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.0ms) RELEASE SAVEPOINT active_record_1
50631
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.0ms) SAVEPOINT active_record_1
50632
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.846925"], ["id", 6]]
50633
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.0ms) RELEASE SAVEPOINT active_record_1
50634
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]
50635
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]
50636
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.1ms) SAVEPOINT active_record_1
50637
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-19 16:15:03.849413"], ["id", 3]]
50638
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.1ms) RELEASE SAVEPOINT active_record_1
50639
+ [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.51ms
50640
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
50641
+ Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]
50642
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50643
+ Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]
50644
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]
50645
+  (0.1ms) SAVEPOINT active_record_1
50646
+ SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-19 16:15:03.856508"], ["id", 3]]
50647
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50648
+  (0.0ms) SAVEPOINT active_record_1
50649
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-19 16:15:03.858329"], ["updated_at", "2016-05-19 16:15:03.858329"]]
50650
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50651
+ [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: fc93de82-b31e-4b9a-beb9-9bda125ef564) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
50652
+ [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
50653
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
50654
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]
50655
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Pulitzer::CloneVersion !!!
50656
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
50657
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]]
50658
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]]
50659
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]
50660
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.0ms) SAVEPOINT active_record_1
50661
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-19 16:15:03.809314"], ["updated_at", "2016-05-19 16:15:03.809314"]]
50662
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.0ms) RELEASE SAVEPOINT active_record_1
50663
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.0ms) SAVEPOINT active_record_1
50664
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-19 16:15:03.867010"], ["id", 7]]
50665
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.1ms) RELEASE SAVEPOINT active_record_1
50666
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]
50667
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.1ms) SAVEPOINT active_record_1
50668
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-19 16:15:03.814472"], ["updated_at", "2016-05-19 16:15:03.814472"]]
50669
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.1ms) RELEASE SAVEPOINT active_record_1
50670
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.0ms) SAVEPOINT active_record_1
50671
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-19 16:15:03.872890"], ["id", 8]]
50672
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.1ms) RELEASE SAVEPOINT active_record_1
50673
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]
50674
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.0ms) SAVEPOINT active_record_1
50675
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-19 16:15:03.819501"], ["updated_at", "2016-05-19 16:15:03.819501"]]
50676
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.0ms) RELEASE SAVEPOINT active_record_1
50677
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.1ms) SAVEPOINT active_record_1
50678
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-19 16:15:03.878525"], ["id", 9]]
50679
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.0ms) RELEASE SAVEPOINT active_record_1
50680
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]
50681
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]
50682
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.0ms) SAVEPOINT active_record_1
50683
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-19 16:15:03.881337"], ["id", 4]]
50684
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.1ms) RELEASE SAVEPOINT active_record_1
50685
+ [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.05ms
50686
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]
50687
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50688
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50689
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50690
+  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]
50691
+  (1.3ms) rollback transaction
50692
+  (0.1ms) begin transaction
50693
+  (0.0ms) commit transaction
50694
+  (0.0ms) begin transaction
50695
+  (0.0ms) SAVEPOINT active_record_1
50696
+ SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:03.895855"], ["updated_at", "2016-05-19 16:15:03.895855"]]
50697
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50698
+  (0.0ms) SAVEPOINT active_record_1
50699
+ Pulitzer::Post Exists (0.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"]]
50700
+ SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-05-19 16:15:03.898661"], ["updated_at", "2016-05-19 16:15:03.898661"]]
50701
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.900886"], ["updated_at", "2016-05-19 16:15:03.900886"]]
50702
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50703
+  (0.0ms) SAVEPOINT active_record_1
50704
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.902584"], ["updated_at", "2016-05-19 16:15:03.902584"]]
50705
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50706
+  (0.1ms) SAVEPOINT active_record_1
50707
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1
50708
+ SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-19 16:15:03.905693"], ["updated_at", "2016-05-19 16:15:03.905693"]]
50709
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50710
+  (0.0ms) SAVEPOINT active_record_1
50711
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.907331"], ["updated_at", "2016-05-19 16:15:03.907331"]]
50712
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50713
+  (0.1ms) SAVEPOINT active_record_1
50714
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1
50715
+ SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-19 16:15:03.910682"], ["updated_at", "2016-05-19 16:15:03.910682"]]
50716
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50717
+  (0.0ms) SAVEPOINT active_record_1
50718
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.912429"], ["updated_at", "2016-05-19 16:15:03.912429"]]
50719
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50720
+  (0.0ms) SAVEPOINT active_record_1
50721
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1
50722
+ SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-19 16:15:03.915467"], ["updated_at", "2016-05-19 16:15:03.915467"]]
50723
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50724
+  (0.0ms) SAVEPOINT active_record_1
50725
+ SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.917228"], ["updated_at", "2016-05-19 16:15:03.917228"]]
50726
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50727
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]
50728
+  (0.0ms) SAVEPOINT active_record_1
50729
+ SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-19 16:15:03.919903"], ["id", 2]]
50730
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50731
+  (0.0ms) SAVEPOINT active_record_1
50732
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-19 16:15:03.921593"], ["updated_at", "2016-05-19 16:15:03.921593"]]
50733
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50734
+ [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 8f31b89c-432f-44fc-b36a-532f813bc6f4) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
50735
+ [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
50736
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
50737
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]
50738
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Pulitzer::CloneVersion !!!
50739
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
50740
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]]
50741
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]]
50742
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]
50743
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.1ms) SAVEPOINT active_record_1
50744
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-19 16:15:03.907331"], ["updated_at", "2016-05-19 16:15:03.907331"]]
50745
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.1ms) RELEASE SAVEPOINT active_record_1
50746
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.0ms) SAVEPOINT active_record_1
50747
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.931719"], ["id", 4]]
50748
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.0ms) RELEASE SAVEPOINT active_record_1
50749
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]
50750
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.1ms) SAVEPOINT active_record_1
50751
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-19 16:15:03.912429"], ["updated_at", "2016-05-19 16:15:03.912429"]]
50752
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.1ms) RELEASE SAVEPOINT active_record_1
50753
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.0ms) SAVEPOINT active_record_1
50754
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.938216"], ["id", 5]]
50755
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.1ms) RELEASE SAVEPOINT active_record_1
50756
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]
50757
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.1ms) SAVEPOINT active_record_1
50758
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-19 16:15:03.917228"], ["updated_at", "2016-05-19 16:15:03.917228"]]
50759
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.1ms) RELEASE SAVEPOINT active_record_1
50760
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.0ms) SAVEPOINT active_record_1
50761
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.944761"], ["id", 6]]
50762
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.0ms) RELEASE SAVEPOINT active_record_1
50763
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]
50764
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]
50765
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.0ms) SAVEPOINT active_record_1
50766
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-19 16:15:03.947482"], ["id", 3]]
50767
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.1ms) RELEASE SAVEPOINT active_record_1
50768
+ [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Performed Pulitzer::CloneVersionJob from Inline(default) in 27.12ms
50769
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
50770
+ Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]
50771
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]
50772
+  (0.1ms) SAVEPOINT active_record_1
50773
+ SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-19 16:15:03.954104"], ["id", 2]]
50774
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50775
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50776
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
50777
+ Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]
50778
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50779
+ Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50780
+ Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
50781
+  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]
50782
+  (0.7ms) rollback transaction
50783
+  (0.1ms) begin transaction
50784
+  (0.0ms) commit transaction
50785
+  (0.0ms) begin transaction
50786
+  (0.0ms) rollback transaction
50787
+  (0.1ms) begin transaction
50788
+  (0.0ms) commit transaction
50789
+  (0.1ms) begin transaction
50790
+  (0.0ms) SAVEPOINT active_record_1
50791
+ Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1
50792
+ SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-19 16:15:03.967452"], ["updated_at", "2016-05-19 16:15:03.967452"]]
50793
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50794
+  (0.4ms) rollback transaction
50795
+  (0.1ms) begin transaction
50796
+  (0.0ms) commit transaction
50797
+  (0.0ms) begin transaction
50798
+  (0.0ms) rollback transaction
50799
+  (0.1ms) begin transaction
50800
+  (0.0ms) commit transaction
50801
+  (0.1ms) begin transaction
50802
+  (0.1ms) rollback transaction
50803
+  (0.0ms) begin transaction
50804
+  (0.0ms) commit transaction
50805
+  (0.0ms) begin transaction
50806
+  (0.0ms) rollback transaction
50807
+  (0.0ms) begin transaction
50808
+  (0.0ms) commit transaction
50809
+  (0.0ms) begin transaction
50810
+  (0.0ms) rollback transaction
50811
+  (0.0ms) begin transaction
50812
+  (0.0ms) commit transaction
50813
+  (0.0ms) begin transaction
50814
+  (0.1ms) SAVEPOINT active_record_1
50815
+ Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1
50816
+ SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-19 16:15:03.978989"], ["updated_at", "2016-05-19 16:15:03.978989"]]
50817
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50818
+  (0.3ms) rollback transaction
50819
+  (0.1ms) begin transaction
50820
+  (0.0ms) commit transaction
50821
+  (0.0ms) begin transaction
50822
+  (0.0ms) SAVEPOINT active_record_1
50823
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1
50824
+ SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-19 16:15:03.984171"], ["updated_at", "2016-05-19 16:15:03.984171"]]
50825
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50826
+  (0.4ms) rollback transaction
50827
+  (0.1ms) begin transaction
50828
+  (0.0ms) commit transaction
50829
+  (0.0ms) begin transaction
50830
+  (0.0ms) SAVEPOINT active_record_1
50831
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1
50832
+ SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-19 16:15:03.989549"], ["updated_at", "2016-05-19 16:15:03.989549"]]
50833
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50834
+  (0.4ms) rollback transaction
50835
+  (0.1ms) begin transaction
50836
+  (0.0ms) commit transaction
50837
+  (0.0ms) begin transaction
50838
+  (0.0ms) SAVEPOINT active_record_1
50839
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1
50840
+ SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-19 16:15:03.995069"], ["updated_at", "2016-05-19 16:15:03.995069"]]
50841
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50842
+  (0.0ms) SAVEPOINT active_record_1
50843
+ SQL (0.5ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-19 16:15:03.996918"], ["updated_at", "2016-05-19 16:15:03.996918"]]
50844
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50845
+  (0.5ms) rollback transaction
50846
+  (0.3ms) begin transaction
50847
+  (0.1ms) commit transaction
50848
+  (0.1ms) begin transaction
50849
+  (0.1ms) SAVEPOINT active_record_1
50850
+ Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1
50851
+ SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-19 16:15:04.006647"], ["updated_at", "2016-05-19 16:15:04.006647"]]
50852
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50853
+  (0.0ms) SAVEPOINT active_record_1
50854
+ SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-19 16:15:04.009266"], ["updated_at", "2016-05-19 16:15:04.009266"]]
50855
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50856
+  (0.7ms) rollback transaction
50857
+  (0.1ms) begin transaction
50858
+  (0.1ms) commit transaction
50859
+  (0.0ms) begin transaction
50860
+  (0.1ms) SAVEPOINT active_record_1
50861
+ Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1
50862
+ SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-05-19 16:15:04.016935"], ["updated_at", "2016-05-19 16:15:04.016935"]]
50863
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50864
+  (0.4ms) rollback transaction
50865
+  (0.1ms) begin transaction
50866
+  (0.0ms) commit transaction
50867
+  (0.0ms) begin transaction
50868
+  (0.0ms) SAVEPOINT active_record_1
50869
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1
50870
+ SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-05-19 16:15:04.022654"], ["updated_at", "2016-05-19 16:15:04.022654"]]
50871
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50872
+  (0.4ms) rollback transaction
50873
+  (0.1ms) begin transaction
50874
+  (0.0ms) commit transaction
50875
+  (0.0ms) begin transaction
50876
+  (0.0ms) SAVEPOINT active_record_1
50877
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1
50878
+ SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-19 16:15:04.028233"], ["updated_at", "2016-05-19 16:15:04.028233"]]
50879
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50880
+  (0.5ms) rollback transaction
50881
+  (0.1ms) begin transaction
50882
+  (0.0ms) commit transaction
50883
+  (0.0ms) begin transaction
50884
+  (0.1ms) SAVEPOINT active_record_1
50885
+ SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:04.236926"], ["updated_at", "2016-05-19 16:15:04.236926"]]
50886
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50887
+ Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]]
50888
+  (0.4ms) rollback transaction
50889
+  (0.1ms) begin transaction
50890
+  (0.1ms) commit transaction
50891
+  (0.1ms) begin transaction
50892
+  (0.1ms) rollback transaction
50893
+  (0.1ms) begin transaction
50894
+  (0.0ms) commit transaction
50895
+  (0.0ms) begin transaction
50896
+  (0.0ms) rollback transaction
50897
+  (0.0ms) begin transaction
50898
+  (0.0ms) commit transaction
50899
+  (0.0ms) begin transaction
50900
+  (0.0ms) SAVEPOINT active_record_1
50901
+ SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:04.251191"], ["updated_at", "2016-05-19 16:15:04.251191"]]
50902
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50903
+  (0.0ms) SAVEPOINT active_record_1
50904
+ Pulitzer::Post Exists (0.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"]]
50905
+ SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-19 16:15:04.254715"], ["updated_at", "2016-05-19 16:15:04.254715"]]
50906
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:04.256994"], ["updated_at", "2016-05-19 16:15:04.256994"]]
50907
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50908
+  (0.7ms) rollback transaction
50909
+  (0.4ms) begin transaction
50910
+  (0.2ms) commit transaction
50911
+  (0.1ms) begin transaction
50912
+  (0.0ms) SAVEPOINT active_record_1
50913
+ SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:04.263302"], ["updated_at", "2016-05-19 16:15:04.263302"]]
50914
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50915
+  (0.0ms) SAVEPOINT active_record_1
50916
+ Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]]
50917
+ SQL (0.6ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-19 16:15:04.267352"], ["updated_at", "2016-05-19 16:15:04.267352"]]
50918
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:04.270256"], ["updated_at", "2016-05-19 16:15:04.270256"]]
50919
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50920
+  (0.0ms) SAVEPOINT active_record_1
50921
+ 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"]]
50922
+ SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-19 16:15:04.272868"], ["id", 1]]
50923
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50924
+  (0.6ms) rollback transaction
50925
+  (0.1ms) begin transaction
50926
+  (0.0ms) commit transaction
50927
+  (0.0ms) begin transaction
50928
+  (0.1ms) SAVEPOINT active_record_1
50929
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1
50930
+ SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-19 16:15:04.285452"], ["updated_at", "2016-05-19 16:15:04.285452"]]
50931
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50932
+  (0.1ms) SAVEPOINT active_record_1
50933
+ SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:04.291584"], ["updated_at", "2016-05-19 16:15:04.291584"]]
50934
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50935
+  (0.0ms) SAVEPOINT active_record_1
50936
+ Pulitzer::Post Exists (0.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"]]
50937
+ SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-19 16:15:04.294988"], ["updated_at", "2016-05-19 16:15:04.294988"]]
50938
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:04.296774"], ["updated_at", "2016-05-19 16:15:04.296774"]]
50939
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50940
+  (0.0ms) SAVEPOINT active_record_1
50941
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:04.298823"], ["updated_at", "2016-05-19 16:15:04.298823"]]
50942
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50943
+  (0.6ms) rollback transaction
50944
+  (0.1ms) begin transaction
50945
+  (0.0ms) commit transaction
50946
+  (0.0ms) begin transaction
50947
+  (0.1ms) rollback transaction
50948
+  (0.1ms) begin transaction
50949
+  (0.0ms) commit transaction
50950
+  (0.0ms) begin transaction
50951
+  (0.1ms) rollback transaction
50952
+  (0.1ms) begin transaction
50953
+  (0.0ms) commit transaction
50954
+  (0.0ms) begin transaction
50955
+  (0.1ms) rollback transaction
50956
+  (0.1ms) begin transaction
50957
+  (0.0ms) commit transaction
50958
+  (0.1ms) begin transaction
50959
+  (0.0ms) rollback transaction
50960
+  (0.0ms) begin transaction
50961
+  (0.1ms) commit transaction
50962
+  (0.0ms) begin transaction
50963
+  (0.0ms) rollback transaction
50964
+  (0.1ms) begin transaction
50965
+  (0.0ms) commit transaction
50966
+  (0.0ms) begin transaction
50967
+  (0.1ms) SAVEPOINT active_record_1
50968
+ SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:04.325202"], ["updated_at", "2016-05-19 16:15:04.325202"]]
50969
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50970
+  (0.1ms) SAVEPOINT active_record_1
50971
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1
50972
+ SQL (0.5ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-05-19 16:15:04.330775"], ["updated_at", "2016-05-19 16:15:04.330775"]]
50973
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50974
+  (0.7ms) rollback transaction
50975
+  (0.1ms) begin transaction
50976
+  (0.1ms) commit transaction
50977
+  (0.0ms) begin transaction
50978
+  (0.1ms) rollback transaction
50979
+  (0.0ms) begin transaction
50980
+  (0.0ms) commit transaction
50981
+  (0.0ms) begin transaction
50982
+  (0.1ms) rollback transaction
50983
+  (0.0ms) begin transaction
50984
+  (0.0ms) commit transaction
50985
+  (0.1ms) begin transaction
50986
+  (0.1ms) rollback transaction
50987
+  (0.1ms) begin transaction
50988
+  (0.1ms) commit transaction
50989
+  (0.1ms) begin transaction
50990
+  (0.2ms) rollback transaction
50991
+  (0.1ms) begin transaction
50992
+  (0.1ms) commit transaction
50993
+  (0.1ms) begin transaction
50994
+  (0.1ms) rollback transaction
50995
+  (0.1ms) begin transaction
50996
+  (0.0ms) commit transaction
50997
+  (0.0ms) begin transaction
50998
+  (0.1ms) rollback transaction
50999
+  (0.1ms) begin transaction
51000
+  (0.0ms) commit transaction
51001
+  (0.0ms) begin transaction
51002
+  (0.1ms) rollback transaction
51003
+  (0.1ms) begin transaction
51004
+  (0.0ms) commit transaction
51005
+  (0.0ms) begin transaction
51006
+  (0.0ms) rollback transaction
51007
+  (0.1ms) begin transaction
51008
+  (0.0ms) commit transaction
51009
+  (0.0ms) begin transaction
51010
+  (0.1ms) rollback transaction
51011
+  (0.0ms) begin transaction
51012
+  (0.0ms) commit transaction
51013
+  (0.1ms) begin transaction
51014
+  (0.1ms) rollback transaction
51015
+  (0.1ms) begin transaction
51016
+  (0.0ms) commit transaction
51017
+  (0.0ms) begin transaction
51018
+  (0.0ms) rollback transaction
51019
+  (0.1ms) begin transaction
51020
+  (0.0ms) commit transaction
51021
+  (0.0ms) begin transaction
51022
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1
51023
+  (0.1ms) rollback transaction
51024
+  (0.1ms) begin transaction
51025
+  (0.0ms) commit transaction
51026
+  (0.0ms) begin transaction
51027
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1
51028
+  (0.0ms) rollback transaction
51029
+  (0.1ms) begin transaction
51030
+  (0.0ms) commit transaction
51031
+  (0.0ms) begin transaction
51032
+ Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1
51033
+  (0.1ms) SAVEPOINT active_record_1
51034
+ SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-19 16:15:04.397260"], ["updated_at", "2016-05-19 16:15:04.397260"]]
51035
+  (0.0ms) RELEASE SAVEPOINT active_record_1
51036
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1
51037
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1
51038
+  (0.4ms) rollback transaction
51039
+  (0.1ms) begin transaction
51040
+  (0.0ms) commit transaction
51041
+  (0.0ms) begin transaction
51042
+  (0.0ms) rollback transaction
51043
+  (0.1ms) begin transaction
51044
+  (0.0ms) commit transaction
51045
+  (0.0ms) begin transaction
51046
+  (0.1ms) rollback transaction
51047
+  (0.1ms) begin transaction
51048
+  (0.0ms) commit transaction
51049
+  (0.0ms) begin transaction
51050
+  (0.1ms) SAVEPOINT active_record_1
51051
+ SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:04.410784"], ["updated_at", "2016-05-19 16:15:04.410784"]]
51052
+  (0.0ms) RELEASE SAVEPOINT active_record_1
51053
+  (0.0ms) SAVEPOINT active_record_1
51054
+ Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]]
51055
+ SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-19 16:15:04.413668"], ["updated_at", "2016-05-19 16:15:04.413668"]]
51056
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:04.415892"], ["updated_at", "2016-05-19 16:15:04.415892"]]
51057
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51058
+  (0.6ms) rollback transaction
51059
+  (0.1ms) begin transaction
51060
+  (0.0ms) commit transaction
51061
+  (0.0ms) begin transaction
51062
+  (0.1ms) rollback transaction
51063
+  (0.1ms) begin transaction
51064
+  (0.1ms) commit transaction
51065
+  (0.0ms) begin transaction
51066
+  (0.1ms) rollback transaction
51067
+  (0.1ms) begin transaction
51068
+  (0.0ms) commit transaction
51069
+  (0.0ms) begin transaction
51070
+  (0.0ms) rollback transaction
51071
+  (0.0ms) begin transaction
51072
+  (0.0ms) commit transaction
51073
+  (0.0ms) begin transaction
51074
+  (0.0ms) rollback transaction
51075
+  (0.0ms) begin transaction
51076
+  (0.1ms) commit transaction
51077
+  (0.0ms) begin transaction
51078
+  (0.0ms) rollback transaction
51079
+  (0.0ms) begin transaction
51080
+  (0.1ms) commit transaction
51081
+  (0.0ms) begin transaction
51082
+  (0.0ms) rollback transaction
51083
+  (0.1ms) begin transaction
51084
+  (0.0ms) commit transaction
51085
+  (0.0ms) begin transaction
51086
+  (0.0ms) SAVEPOINT active_record_1
51087
+ Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1
51088
+ SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-19 16:15:04.436788"], ["updated_at", "2016-05-19 16:15:04.436788"]]
51089
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51090
+  (0.0ms) SAVEPOINT active_record_1
51091
+ SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:04.440477"], ["updated_at", "2016-05-19 16:15:04.440477"]]
51092
+  (0.0ms) RELEASE SAVEPOINT active_record_1
51093
+  (0.0ms) SAVEPOINT active_record_1
51094
+ Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]]
51095
+ SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-05-19 16:15:04.444407"], ["updated_at", "2016-05-19 16:15:04.444407"]]
51096
+ SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:04.446734"], ["updated_at", "2016-05-19 16:15:04.446734"]]
51097
+  (0.0ms) RELEASE SAVEPOINT active_record_1
51098
+  (0.0ms) SAVEPOINT active_record_1
51099
+ SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:04.448402"], ["updated_at", "2016-05-19 16:15:04.448402"]]
51100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
51101
+  (0.0ms) SAVEPOINT active_record_1
51102
+ SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-19 16:15:04.451049"], ["updated_at", "2016-05-19 16:15:04.451049"]]
51103
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51104
+  (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"]]
51105
+  (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]]
51106
+ 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"]]
51107
+ Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]
51108
+  (0.7ms) rollback transaction