pulitzer 0.14.2 → 0.14.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/pulitzer/content_element.rb +2 -2
  3. data/app/models/pulitzer/post_type_content_element_type.rb +10 -16
  4. data/app/views/pulitzer/content_elements/_clickable_fields.html.erb +1 -1
  5. data/db/migrate/20170526212313_create_pulitzer_custom_option.rb +9 -0
  6. data/db/migrate/20170526212330_create_pulitzer_custom_option_list.rb +7 -0
  7. data/db/migrate/20170530145657_add_layout_to_content_elements.rb +7 -0
  8. data/db/migrate/20170530164044_convert_layouts.rb +13 -0
  9. data/db/migrate/20170531164349_create_post_type_custom_option_list.rb +8 -0
  10. data/db/migrate/20170601195822_add_clickable_type_to_ptcet.rb +5 -0
  11. data/db/migrate/20170602204900_add_style_to_content_element.rb +5 -0
  12. data/lib/pulitzer/version.rb +1 -1
  13. data/spec/controllers/pulitzer/content_elements_controller_spec.rb +35 -0
  14. data/spec/controllers/pulitzer/post_type_content_element_types_controller_spec.rb +107 -0
  15. data/spec/dummy/db/development.sqlite3 +0 -0
  16. data/spec/dummy/db/schema.rb +26 -7
  17. data/spec/dummy/db/seeds/pulitzer_post_types.rb +8 -1
  18. data/spec/dummy/db/test.sqlite3 +0 -0
  19. data/spec/dummy/log/development.log +185 -0
  20. data/spec/dummy/log/test.log +22769 -0
  21. data/spec/dummy/public/uploads/pulitzer/content_element/image/23/cms_sam_and_snow.jpg +0 -0
  22. data/spec/dummy/public/uploads/pulitzer/content_element/image/23/sam_and_snow.jpg +0 -0
  23. data/spec/dummy/public/uploads/pulitzer/content_element/image/23/thumb_sam_and_snow.jpg +0 -0
  24. data/spec/dummy/public/uploads/pulitzer/content_element/image/45/cms_sam_and_snow.jpg +0 -0
  25. data/spec/dummy/public/uploads/pulitzer/content_element/image/45/sam_and_snow.jpg +0 -0
  26. data/spec/dummy/public/uploads/pulitzer/content_element/image/45/thumb_sam_and_snow.jpg +0 -0
  27. data/spec/dummy/public/uploads/pulitzer/content_element/image/67/cms_sam_and_snow.jpg +0 -0
  28. data/spec/dummy/public/uploads/pulitzer/content_element/image/67/sam_and_snow.jpg +0 -0
  29. data/spec/dummy/public/uploads/pulitzer/content_element/image/67/thumb_sam_and_snow.jpg +0 -0
  30. data/spec/dummy/public/uploads/pulitzer/content_element/image/901/cms_sam_and_snow.jpg +0 -0
  31. data/spec/dummy/public/uploads/pulitzer/content_element/image/901/sam_and_snow.jpg +0 -0
  32. data/spec/dummy/public/uploads/pulitzer/content_element/image/901/thumb_sam_and_snow.jpg +0 -0
  33. data/spec/interactions/clone_version_spec.rb +2 -2
  34. data/spec/interactions/update_version_status_spec.rb +3 -3
  35. data/spec/models/content_element_spec.rb +0 -4
  36. data/spec/models/post_type_content_element_type_spec.rb +0 -1
  37. metadata +37 -4
  38. data/spec/interactions/update_free_Form_sections_partials_spec.rb +0 -21
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99dade38fdc43b90c5a9960fe824040938f71a5a
4
- data.tar.gz: 4f82120d405d0f7c33145df653f781d76e66ab8e
3
+ metadata.gz: d306733e90cafb801b0e1fd513698611e83e530f
4
+ data.tar.gz: c00b7e70d784cf58129024c2f1c6f0ad740d5536
5
5
  SHA512:
6
- metadata.gz: b6e47577e112d129b8e02ebe5cf550a464cee5a82820e3dff5a5ce7c638ca8cd25df3fe137ccd7c0cdf25f02eafa9ed7d74e2065a8496dc0a968b24606683dfa
7
- data.tar.gz: db7aae7f3d4d053feb5a64a5c3c49a286b4e77201b09c21217aa3b2a397627916d4565dc3e34c7b18d66615af02f2930fa4bb0e07427a23b6b7bb6d48ac331c4
6
+ metadata.gz: 8614d2f79982d03a690382b938a43775c6d7d81fb313c991b8c4c4b8a377d292c0c0d6a526d13364b81a969fd5ad3d67d024fe0275d8329e905cf758064b57b2
7
+ data.tar.gz: 713bfdf230961e4957bffc32a1bd12377e28c9716ce2b664b2cd9bfaf937bdcc36effdf3dcd590f38000b9e73d7c7d9bcd409fa671cfb12fed10399252ddc418
@@ -92,9 +92,9 @@ module Pulitzer
92
92
  if custom_type?
93
93
  custom_option.custom_option_list
94
94
  elsif body.present?
95
- Pulitzer::PostTypeContentElementType.url_clickable
95
+ Pulitzer::PostTypeContentElementType::Url_clickable
96
96
  else
97
- Pulitzer::PostTypeContentElementType.any_clickable
97
+ Pulitzer::PostTypeContentElementType::Any_clickable
98
98
  end
99
99
  end
100
100
 
@@ -14,24 +14,18 @@ module Pulitzer
14
14
 
15
15
  validates :label, presence: true
16
16
 
17
- def self.any_clickable
18
- return @any if @any.present?
19
- @any = OpenStruct.new
20
- @any.gid = 'any'
21
- @any.name = 'Any'
22
- @any
23
- end
17
+ Any_clickable = OpenStruct.new
18
+ Any_clickable.gid = 'any'
19
+ Any_clickable.name = 'Any'
20
+ Any_clickable.freeze
24
21
 
25
- def self.url_clickable
26
- return @url if @url.present?
27
- @url = OpenStruct.new
28
- @url.gid = 'url'
29
- @url.name = 'URL'
30
- @url
31
- end
22
+ URL_clickable = OpenStruct.new
23
+ URL_clickable.gid = 'url'
24
+ URL_clickable.name = 'URL'
25
+ URL_clickable.freeze
32
26
 
33
27
  def self.clickable_kinds
34
- [any_clickable] + Pulitzer::CustomOptionList.all.to_a + [url_clickable]
28
+ [Any_clickable] + Pulitzer::CustomOptionList.all.to_a + [URL_clickable]
35
29
  end
36
30
 
37
31
  def clickable_kind_display
@@ -47,7 +41,7 @@ module Pulitzer
47
41
  end
48
42
 
49
43
  def clickable_kinds
50
- Pulitzer::CustomOptionList.all.to_a + [self.class.url_clickable]
44
+ Pulitzer::CustomOptionList.all.to_a + [URL_clickable]
51
45
  end
52
46
 
53
47
  def custom_clickable_kinds
@@ -25,7 +25,7 @@
25
25
  <% else %>
26
26
  <%= hidden_field_tag 'content_element[clickable_kind]', f.object.custom_option_list.gid %>
27
27
  <span class="pulitzer-span heading"><%= f.object.custom_option_list.name %></span>
28
- <%= f.select :custom_option_id, options_from_collection_for_select(f.object.custom_options, :id, :display) %>
28
+ <%= f.select :custom_option_id, options_from_collection_for_select(f.object.custom_options, :id, :display, f.object.custom_option_id) %>
29
29
  <% end %>
30
30
  <div class="pulitzer-row"><span class="pulitzer-span heading">Style</span></div>
31
31
  <%= f.select :style_id, options_from_collection_for_select(f.object.style_options, :id, :display_name, f.object.style_id) %>
@@ -0,0 +1,9 @@
1
+ class CreatePulitzerCustomOption < ActiveRecord::Migration[5.0]
2
+ def change
3
+ create_table :pulitzer_custom_options do |t|
4
+ t.integer :custom_option_list_id
5
+ t.string :display
6
+ t.string :value
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ class CreatePulitzerCustomOptionList < ActiveRecord::Migration[5.0]
2
+ def change
3
+ create_table :pulitzer_custom_option_lists do |t|
4
+ t.string :name
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ class AddLayoutToContentElements < ActiveRecord::Migration[5.0]
2
+ def change
3
+ remove_column :pulitzer_content_elements, :kind, :integer
4
+ add_column :pulitzer_content_elements, :layout_id, :integer
5
+ add_column :pulitzer_content_elements, :custom_option_id, :integer
6
+ end
7
+ end
@@ -0,0 +1,13 @@
1
+ class ConvertLayouts < ActiveRecord::Migration[5.0]
2
+ def change
3
+ drop_table :pulitzer_layouts
4
+ create_table :pulitzer_styles do |t|
5
+ t.integer :post_type_content_element_type_id
6
+ t.string :display_name
7
+ t.string :css_class_name
8
+ end
9
+
10
+ Pulitzer::ContentElement.reset_column_information
11
+ Pulitzer::ContentElementType.find_or_create_by(name: 'Clickable')
12
+ end
13
+ end
@@ -0,0 +1,8 @@
1
+ class CreatePostTypeCustomOptionList < ActiveRecord::Migration[5.0]
2
+ def change
3
+ create_table :pulitzer_post_type_content_element_type_custom_option_lists do |t|
4
+ t.integer :post_type_content_element_type_id
5
+ t.integer :custom_option_list_id
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ class AddClickableTypeToPtcet < ActiveRecord::Migration[5.0]
2
+ def change
3
+ add_column :pulitzer_post_type_content_element_types, :clickable_kind, :string, default: 'any', null: false
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddStyleToContentElement < ActiveRecord::Migration[5.0]
2
+ def change
3
+ rename_column :pulitzer_content_elements, :layout_id, :style_id
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module Pulitzer
2
- VERSION = '0.14.2'
2
+ VERSION = '0.14.3'
3
3
  end
@@ -0,0 +1,35 @@
1
+ require 'rails_helper'
2
+
3
+ describe Pulitzer::ContentElementsController do
4
+ routes { Pulitzer::Engine.routes }
5
+ render_views
6
+
7
+ let(:custom_option) {Pulitzer::CustomOption.find_by value: 'contactMgmt'}
8
+ let(:custom_option_list) {custom_option.custom_option_list}
9
+ let(:cet) {Pulitzer::ContentElementType.find_by name: 'Clickable'}
10
+ let(:content_element) {Pulitzer::ContentElement.find_by content_element_type_id: cet.id}
11
+
12
+ describe "content_elements", type: :request do
13
+ it "updates a clickable with a custom option" do
14
+ content_element.update body: 'remove me'
15
+ expect(content_element.custom_option_id).not_to eq custom_option.id
16
+ patch pulitzer.content_element_path(id: content_element.id, content_element:{
17
+ clickable_kind: custom_option_list.gid, custom_option_id: custom_option.id
18
+ })
19
+ expect(response.status).to eq 200
20
+ expect(content_element.reload.custom_option_id).to eq custom_option.id
21
+ expect(content_element.body).to be nil
22
+ end
23
+
24
+ it "updates a clickable with a url" do
25
+ content_element.update custom_option_id: custom_option.id
26
+ expect(content_element.body).not_to eq 'http://google.com'
27
+ patch pulitzer.content_element_path(id: content_element.id, content_element:{
28
+ clickable_kind: 'url', body: 'http://google.com'
29
+ })
30
+ expect(response.status).to eq 200
31
+ expect(content_element.reload.custom_option_id).to be nil
32
+ expect(content_element.body).to eq 'http://google.com'
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,107 @@
1
+ require 'rails_helper'
2
+
3
+ describe Pulitzer::PostTypeContentElementTypesController do
4
+ routes { Pulitzer::Engine.routes }
5
+ render_views
6
+
7
+ let(:custom_option_list) {Pulitzer::CustomOptionList.find_by name: 'Sliders'}
8
+ let(:cet) {Pulitzer::ContentElementType.find_by name: 'Clickable'}
9
+ let(:post_type) {Pulitzer::PostType.create(name: 'Text and Action', plural: true, kind: :partial)}
10
+ let(:post_type_content_element_type) {post_type.post_type_content_element_types.create label: 'Action Button', content_element_type_id: cet.id}
11
+
12
+ describe "clickable_types", type: :request do
13
+ it "renders the correct options for clickable_kinds" do
14
+ get pulitzer.edit_post_type_content_element_type_path(post_type_content_element_type)
15
+ expect(response.status).to eq 200
16
+ expect(response.body).to match('value="any"')
17
+ expect(response.body).to match('value="' + custom_option_list.gid + '"')
18
+ expect(response.body).to match('value="url"')
19
+ end
20
+
21
+ it "creates with 'any' as a clickable_kind" do
22
+ post pulitzer.post_type_content_element_types_path(
23
+ post_type_content_element_type:{
24
+ label: 'Action Button 2',
25
+ content_element_type_id: cet.id,
26
+ post_type_id: post_type.id,
27
+ clickable_kind: 'any'
28
+ }
29
+ )
30
+ expect(response.status).to eq 200
31
+ ptcet = Pulitzer::PostTypeContentElementType.order(id: :desc).first
32
+ expect(ptcet.label).to eq 'Action Button 2'
33
+ expect(ptcet.content_element_type_id).to eq cet.id
34
+ expect(ptcet.post_type_id).to eq post_type.id
35
+ expect(ptcet.clickable_kind).to eq 'any'
36
+ end
37
+
38
+ it "creates with Sliders as a clickable_kind" do
39
+ post pulitzer.post_type_content_element_types_path(
40
+ post_type_content_element_type:{
41
+ label: 'Action Button 2',
42
+ content_element_type_id: cet.id,
43
+ post_type_id: post_type.id,
44
+ clickable_kind: custom_option_list.gid
45
+ }
46
+ )
47
+ expect(response.status).to eq 200
48
+ ptcet = Pulitzer::PostTypeContentElementType.order(id: :desc).first
49
+ expect(ptcet.label).to eq 'Action Button 2'
50
+ expect(ptcet.content_element_type_id).to eq cet.id
51
+ expect(ptcet.post_type_id).to eq post_type.id
52
+ expect(ptcet.custom_option_list.id).to eq custom_option_list.id
53
+ end
54
+
55
+ it "creates with 'url' as a clickable_kind" do
56
+ post pulitzer.post_type_content_element_types_path(
57
+ post_type_content_element_type:{
58
+ label: 'Action Button 2',
59
+ content_element_type_id: cet.id,
60
+ post_type_id: post_type.id,
61
+ clickable_kind: 'url'
62
+ }
63
+ )
64
+ expect(response.status).to eq 200
65
+ ptcet = Pulitzer::PostTypeContentElementType.order(id: :desc).first
66
+ expect(ptcet.label).to eq 'Action Button 2'
67
+ expect(ptcet.content_element_type_id).to eq cet.id
68
+ expect(ptcet.post_type_id).to eq post_type.id
69
+ expect(ptcet.clickable_kind).to eq 'url'
70
+ end
71
+
72
+ it "shows with a custom_option_list selected" do
73
+ post_type_content_element_type.update clickable_kind: custom_option_list.gid
74
+ get pulitzer.post_type_content_element_type_path(post_type_content_element_type)
75
+ expect(response.status).to eq 200
76
+ expect(response.body).to match('Action Button')
77
+ expect(response.body).to match(cet.name)
78
+ expect(response.body).to match(custom_option_list.name)
79
+ expect(response.body).to match('Styles')
80
+ end
81
+
82
+ it "updates with 'url' as a clickable_kind" do
83
+ post_type_content_element_type.update clickable_kind: custom_option_list.gid
84
+
85
+ patch pulitzer.post_type_content_element_type_path(id: post_type_content_element_type.id,
86
+ post_type_content_element_type: {
87
+ label: 'Action Button 2',
88
+ content_element_type_id: cet.id,
89
+ post_type_id: post_type.id,
90
+ clickable_kind: 'url'
91
+ }
92
+ )
93
+ expect(response.status).to eq 200
94
+ expect(post_type_content_element_type.reload.label).to eq 'Action Button 2'
95
+ expect(post_type_content_element_type.content_element_type_id).to eq cet.id
96
+ expect(post_type_content_element_type.post_type_id).to eq post_type.id
97
+ expect(post_type_content_element_type.clickable_kind).to eq 'url'
98
+ end
99
+
100
+ it 'deletes' do
101
+ id = post_type_content_element_type.id
102
+ delete pulitzer.post_type_content_element_type_path(post_type_content_element_type)
103
+ expect(response.status).to eq 200
104
+ expect(Pulitzer::PostTypeContentElementType.find_by(id: id)).to be nil
105
+ end
106
+ end
107
+ end
Binary file
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 20170518145318) do
13
+ ActiveRecord::Schema.define(version: 20170602204900) do
14
14
 
15
15
  create_table "pulitzer_arrangement_styles", force: :cascade do |t|
16
16
  t.integer "post_type_id"
@@ -32,6 +32,7 @@ ActiveRecord::Schema.define(version: 20170518145318) do
32
32
 
33
33
  create_table "pulitzer_content_elements", force: :cascade do |t|
34
34
  t.string "label"
35
+ t.string "title"
35
36
  t.text "body"
36
37
  t.string "image"
37
38
  t.integer "version_id"
@@ -43,8 +44,19 @@ ActiveRecord::Schema.define(version: 20170518145318) do
43
44
  t.integer "height", default: 100
44
45
  t.integer "width", default: 100
45
46
  t.integer "sort_order"
46
- t.integer "kind", default: 0
47
47
  t.integer "partial_id"
48
+ t.integer "style_id"
49
+ t.integer "custom_option_id"
50
+ end
51
+
52
+ create_table "pulitzer_custom_option_lists", force: :cascade do |t|
53
+ t.string "name"
54
+ end
55
+
56
+ create_table "pulitzer_custom_options", force: :cascade do |t|
57
+ t.integer "custom_option_list_id"
58
+ t.string "display"
59
+ t.string "value"
48
60
  end
49
61
 
50
62
  create_table "pulitzer_free_form_section_types", force: :cascade do |t|
@@ -65,11 +77,6 @@ ActiveRecord::Schema.define(version: 20170518145318) do
65
77
  t.string "css_class_name"
66
78
  end
67
79
 
68
- create_table "pulitzer_layouts", force: :cascade do |t|
69
- t.integer "post_type_id"
70
- t.string "name"
71
- end
72
-
73
80
  create_table "pulitzer_partial_types", force: :cascade do |t|
74
81
  t.integer "free_form_section_type_id"
75
82
  t.string "label"
@@ -98,6 +105,11 @@ ActiveRecord::Schema.define(version: 20170518145318) do
98
105
  t.datetime "updated_at", null: false
99
106
  end
100
107
 
108
+ create_table "pulitzer_post_type_content_element_type_custom_option_lists", force: :cascade do |t|
109
+ t.integer "post_type_content_element_type_id"
110
+ t.integer "custom_option_list_id"
111
+ end
112
+
101
113
  create_table "pulitzer_post_type_content_element_types", force: :cascade do |t|
102
114
  t.integer "post_type_id"
103
115
  t.integer "content_element_type_id"
@@ -109,6 +121,7 @@ ActiveRecord::Schema.define(version: 20170518145318) do
109
121
  t.string "text_editor"
110
122
  t.boolean "required", default: false
111
123
  t.integer "sort_order"
124
+ t.string "clickable_kind", default: "any", null: false
112
125
  end
113
126
 
114
127
  create_table "pulitzer_post_types", force: :cascade do |t|
@@ -135,6 +148,12 @@ ActiveRecord::Schema.define(version: 20170518145318) do
135
148
  t.string "css_class_name"
136
149
  end
137
150
 
151
+ create_table "pulitzer_styles", force: :cascade do |t|
152
+ t.integer "post_type_content_element_type_id"
153
+ t.string "display_name"
154
+ t.string "css_class_name"
155
+ end
156
+
138
157
  create_table "pulitzer_tags", force: :cascade do |t|
139
158
  t.string "name"
140
159
  t.datetime "created_at", null: false
@@ -5,6 +5,8 @@ module Seeds
5
5
  content_element_type = Pulitzer::ContentElementType.create(name: 'Text')
6
6
  image_element_type = Pulitzer::ContentElementType.create(name: 'Image')
7
7
  video_element_type = Pulitzer::ContentElementType.create(name: 'Video')
8
+ clickable_element_type = Pulitzer::ContentElementType.create(name: 'Clickable')
9
+
8
10
  content_elements = [
9
11
  { label: 'Hero Title 1', content_element_type_id: content_element_type.id },
10
12
  { label: 'Hero Title 2', content_element_type_id: content_element_type.id },
@@ -15,7 +17,8 @@ module Seeds
15
17
  { label: 'Footer Text', content_element_type_id: content_element_type.id },
16
18
  { label: 'Metadata title', content_element_type_id: content_element_type.id },
17
19
  { label: 'Metadata description', content_element_type_id: content_element_type.id },
18
- { label: 'Metadata keywords', content_element_type_id: content_element_type.id }
20
+ { label: 'Metadata keywords', content_element_type_id: content_element_type.id },
21
+ { label: 'Call to Action Button', content_element_type_id: clickable_element_type.id }
19
22
  ]
20
23
 
21
24
  content_elements.each do |ce|
@@ -44,6 +47,10 @@ module Seeds
44
47
  welcome_post.content_elements.each do |ce|
45
48
  ce.update(body: ce.label)
46
49
  end
50
+
51
+ col = Pulitzer::CustomOptionList.create name: 'Sliders'
52
+ co = col.custom_options.create(display: 'Rental Estimate', value: 'contactMgmt')
53
+ co2 = col.custom_options.create(display: 'Agent Coterie', value: 'contactRealEstate')
47
54
  end
48
55
  end
49
56
  end
Binary file
@@ -1033,3 +1033,188 @@ Creating scope :free_form. Overwriting existing method Pulitzer::ContentElement.
1033
1033
  Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."name" = ? LIMIT ? [["name", "Welcome"], ["LIMIT", 1]]
1034
1034
  Pulitzer::PostTypeContentElementType Load (0.2ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."sort_order" ASC [["post_type_id", 1]]
1035
1035
  Pulitzer::FreeFormSectionType Load (0.2ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]]
1036
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1037
+ Migrating to CreatePulitzerCustomOption (20170526212313)
1038
+  (0.1ms) begin transaction
1039
+  (0.5ms) CREATE TABLE "pulitzer_custom_options" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "custom_option_list_id" integer, "display" varchar, "value" varchar)
1040
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170526212313"]]
1041
+  (0.8ms) commit transaction
1042
+ Migrating to CreatePulitzerCustomOptionList (20170526212330)
1043
+  (0.1ms) begin transaction
1044
+  (0.3ms) CREATE TABLE "pulitzer_custom_option_lists" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
1045
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170526212330"]]
1046
+  (0.7ms) commit transaction
1047
+ Migrating to AddLayoutToContentElements (20170530145657)
1048
+  (0.0ms) begin transaction
1049
+  (0.2ms) CREATE TEMPORARY TABLE "apulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0, "partial_id" integer)
1050
+  (0.4ms) INSERT INTO "apulitzer_content_elements" ("id","label","body","image","version_id","post_type_content_element_type_id","content_element_type_id","created_at","updated_at","text_editor","height","width","sort_order","kind","partial_id")
1051
+ SELECT "id","label","body","image","version_id","post_type_content_element_type_id","content_element_type_id","created_at","updated_at","text_editor","height","width","sort_order","kind","partial_id" FROM "pulitzer_content_elements"
1052
+  (0.6ms) DROP TABLE "pulitzer_content_elements"
1053
+  (0.2ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "partial_id" integer)
1054
+  (0.1ms) INSERT INTO "pulitzer_content_elements" ("id","label","body","image","version_id","post_type_content_element_type_id","content_element_type_id","created_at","updated_at","text_editor","height","width","sort_order","partial_id")
1055
+ SELECT "id","label","body","image","version_id","post_type_content_element_type_id","content_element_type_id","created_at","updated_at","text_editor","height","width","sort_order","partial_id" FROM "apulitzer_content_elements"
1056
+  (0.2ms) DROP TABLE "apulitzer_content_elements"
1057
+  (0.2ms) ALTER TABLE "pulitzer_content_elements" ADD "layout_id" integer
1058
+  (0.2ms) ALTER TABLE "pulitzer_content_elements" ADD "custom_option_id" integer
1059
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170530145657"]]
1060
+  (0.8ms) commit transaction
1061
+ Migrating to ConvertLayouts (20170530164044)
1062
+  (0.0ms) begin transaction
1063
+  (0.3ms) DROP TABLE "pulitzer_layouts"
1064
+  (0.1ms) CREATE TABLE "pulitzer_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_content_element_type_id" integer, "display_name" varchar, "css_class_name" varchar)
1065
+ Pulitzer::ContentElementType Load (0.5ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = ? LIMIT ? [["name", "Clickable"], ["LIMIT", 1]]
1066
+ Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = ? LIMIT ? [["name", "Clickable"], ["LIMIT", 1]]
1067
+ SQL (0.5ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Clickable"], ["created_at", 2017-06-05 15:39:37 UTC], ["updated_at", 2017-06-05 15:39:37 UTC]]
1068
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170530164044"]]
1069
+  (1.1ms) commit transaction
1070
+ Migrating to CreatePostTypeCustomOptionList (20170531164349)
1071
+  (0.1ms) begin transaction
1072
+  (0.4ms) CREATE TABLE "pulitzer_post_type_content_element_type_custom_option_lists" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_content_element_type_id" integer, "custom_option_list_id" integer)
1073
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170531164349"]]
1074
+  (0.8ms) commit transaction
1075
+ Migrating to AddClickableTypeToPtcet (20170601195822)
1076
+  (0.1ms) begin transaction
1077
+  (0.4ms) ALTER TABLE "pulitzer_post_type_content_element_types" ADD "clickable_kind" varchar DEFAULT 'any' NOT NULL
1078
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170601195822"]]
1079
+  (0.7ms) commit transaction
1080
+ Migrating to AddStyleToContentElement (20170602204900)
1081
+  (0.1ms) begin transaction
1082
+  (0.1ms) CREATE TEMPORARY TABLE "apulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "partial_id" integer, "style_id" integer, "custom_option_id" integer)
1083
+  (0.1ms) INSERT INTO "apulitzer_content_elements" ("id","label","body","image","version_id","post_type_content_element_type_id","content_element_type_id","created_at","updated_at","text_editor","height","width","sort_order","partial_id","style_id","custom_option_id")
1084
+ SELECT "id","label","body","image","version_id","post_type_content_element_type_id","content_element_type_id","created_at","updated_at","text_editor","height","width","sort_order","partial_id","layout_id","custom_option_id" FROM "pulitzer_content_elements"
1085
+  (0.3ms) DROP TABLE "pulitzer_content_elements"
1086
+  (0.2ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "partial_id" integer, "style_id" integer, "custom_option_id" integer)
1087
+  (0.1ms) INSERT INTO "pulitzer_content_elements" ("id","label","body","image","version_id","post_type_content_element_type_id","content_element_type_id","created_at","updated_at","text_editor","height","width","sort_order","partial_id","style_id","custom_option_id")
1088
+ SELECT "id","label","body","image","version_id","post_type_content_element_type_id","content_element_type_id","created_at","updated_at","text_editor","height","width","sort_order","partial_id","style_id","custom_option_id" FROM "apulitzer_content_elements"
1089
+  (0.1ms) DROP TABLE "apulitzer_content_elements"
1090
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170602204900"]]
1091
+  (0.8ms) commit transaction
1092
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
1093
+  (0.1ms) begin transaction
1094
+  (0.0ms) commit transaction
1095
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1096
+  (0.1ms)  SELECT sql
1097
+ FROM sqlite_master
1098
+ WHERE name='index_pulitzer_posts_on_slug' AND type='index'
1099
+ UNION ALL
1100
+ SELECT sql
1101
+ FROM sqlite_temp_master
1102
+ WHERE name='index_pulitzer_posts_on_slug' AND type='index'
1103
+ 
1104
+  (0.1ms)  SELECT sql
1105
+ FROM sqlite_master
1106
+ WHERE name='index_pulitzer_tags_on_hierarchical' AND type='index'
1107
+ UNION ALL
1108
+ SELECT sql
1109
+ FROM sqlite_temp_master
1110
+ WHERE name='index_pulitzer_tags_on_hierarchical' AND type='index'
1111
+ 
1112
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1113
+  (0.1ms)  SELECT sql
1114
+ FROM sqlite_master
1115
+ WHERE name='index_pulitzer_posts_on_slug' AND type='index'
1116
+ UNION ALL
1117
+ SELECT sql
1118
+ FROM sqlite_temp_master
1119
+ WHERE name='index_pulitzer_posts_on_slug' AND type='index'
1120
+ 
1121
+  (0.1ms)  SELECT sql
1122
+ FROM sqlite_master
1123
+ WHERE name='index_pulitzer_tags_on_hierarchical' AND type='index'
1124
+ UNION ALL
1125
+ SELECT sql
1126
+ FROM sqlite_temp_master
1127
+ WHERE name='index_pulitzer_tags_on_hierarchical' AND type='index'
1128
+ 
1129
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
1130
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", :environment]]
1131
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1132
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", :environment]]
1133
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1134
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", :environment]]
1135
+  (1.2ms) CREATE TABLE "pulitzer_arrangement_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "display_name" varchar, "view_file_name" varchar)
1136
+  (1.3ms) CREATE TABLE "pulitzer_background_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "display_name" varchar, "css_class_name" varchar)
1137
+  (0.9ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1138
+  (1.2ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "partial_id" integer, "style_id" integer, "custom_option_id" integer)
1139
+  (2.3ms) CREATE TABLE "pulitzer_custom_option_lists" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
1140
+  (2.4ms) CREATE TABLE "pulitzer_custom_options" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "custom_option_list_id" integer, "display" varchar, "value" varchar)
1141
+  (1.1ms) CREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar, "sort_order" integer)
1142
+  (1.7ms) CREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)
1143
+  (2.5ms) CREATE TABLE "pulitzer_justification_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "display_name" varchar, "css_class_name" varchar)
1144
+  (3.8ms) CREATE TABLE "pulitzer_partial_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "free_form_section_type_id" integer, "label" varchar, "sort_order" integer, "layout_id" integer, "post_type_id" integer)
1145
+  (1.6ms) CREATE TABLE "pulitzer_partials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "free_form_section_id" integer, "sort_order" integer, "layout_id" integer, "label" varchar, "background_style_id" integer, "justification_style_id" integer, "sequence_flow_style_id" integer, "arrangement_style_id" integer)
1146
+  (4.8ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1147
+  (1.6ms) CREATE TABLE "pulitzer_post_type_content_element_type_custom_option_lists" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_content_element_type_id" integer, "custom_option_list_id" integer)
1148
+  (1.6ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "required" boolean DEFAULT 'f', "sort_order" integer, "clickable_kind" varchar DEFAULT 'any' NOT NULL)
1149
+  (1.1ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "kind" integer DEFAULT 0)
1150
+  (2.0ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "slug" varchar)
1151
+  (0.8ms) select sqlite_version(*)
1152
+  (4.5ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug")
1153
+  (1.7ms) CREATE TABLE "pulitzer_sequence_flow_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "display_name" varchar, "css_class_name" varchar)
1154
+  (1.0ms) CREATE TABLE "pulitzer_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_content_element_type_id" integer, "display_name" varchar, "css_class_name" varchar)
1155
+  (1.7ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "parent_id" integer, "hierarchical" boolean DEFAULT 'f' NOT NULL)
1156
+  (1.8ms) CREATE INDEX "index_pulitzer_tags_on_hierarchical" ON "pulitzer_tags" ("hierarchical")
1157
+  (48.9ms) CREATE TABLE "pulitzer_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer DEFAULT 0, "post_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "cloning_errors" text)
1158
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1159
+  (0.3ms) SELECT version FROM "schema_migrations"
1160
+  (11.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20170602204900')
1161
+  (16.1ms) INSERT INTO schema_migrations (version) VALUES
1162
+ ('20170526212313'),
1163
+ ('20170526212330'),
1164
+ ('20170530145657'),
1165
+ ('20170530164044'),
1166
+ ('20170531164349'),
1167
+ ('20170601195822');
1168
+
1169
+ 
1170
+  (2.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1171
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
1172
+  (0.1ms) begin transaction
1173
+ SQL (3.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", 2017-06-05 15:46:18 UTC], ["updated_at", 2017-06-05 15:46:18 UTC]]
1174
+  (0.8ms) commit transaction
1175
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
1176
+  (0.1ms) begin transaction
1177
+  (0.0ms) commit transaction
1178
+  (0.9ms) CREATE TABLE "pulitzer_arrangement_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "display_name" varchar, "view_file_name" varchar)
1179
+  (1.2ms) CREATE TABLE "pulitzer_background_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "display_name" varchar, "css_class_name" varchar)
1180
+  (1.4ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1181
+  (2.4ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "partial_id" integer, "style_id" integer, "custom_option_id" integer)
1182
+  (1.1ms) CREATE TABLE "pulitzer_custom_option_lists" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
1183
+  (1.0ms) CREATE TABLE "pulitzer_custom_options" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "custom_option_list_id" integer, "display" varchar, "value" varchar)
1184
+  (3.5ms) CREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar, "sort_order" integer)
1185
+  (1.5ms) CREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)
1186
+  (7.7ms) CREATE TABLE "pulitzer_justification_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "display_name" varchar, "css_class_name" varchar)
1187
+  (1.9ms) CREATE TABLE "pulitzer_partial_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "free_form_section_type_id" integer, "label" varchar, "sort_order" integer, "layout_id" integer, "post_type_id" integer)
1188
+  (1.1ms) CREATE TABLE "pulitzer_partials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "free_form_section_id" integer, "sort_order" integer, "layout_id" integer, "label" varchar, "background_style_id" integer, "justification_style_id" integer, "sequence_flow_style_id" integer, "arrangement_style_id" integer)
1189
+  (3.7ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1190
+  (8.5ms) CREATE TABLE "pulitzer_post_type_content_element_type_custom_option_lists" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_content_element_type_id" integer, "custom_option_list_id" integer)
1191
+  (1.3ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "required" boolean DEFAULT 'f', "sort_order" integer, "clickable_kind" varchar DEFAULT 'any' NOT NULL)
1192
+  (3.6ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "kind" integer DEFAULT 0)
1193
+  (5.1ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "slug" varchar)
1194
+  (0.2ms) select sqlite_version(*)
1195
+  (3.3ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug")
1196
+  (6.0ms) CREATE TABLE "pulitzer_sequence_flow_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "display_name" varchar, "css_class_name" varchar)
1197
+  (1.3ms) CREATE TABLE "pulitzer_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_content_element_type_id" integer, "display_name" varchar, "css_class_name" varchar)
1198
+  (5.6ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "parent_id" integer, "hierarchical" boolean DEFAULT 'f' NOT NULL)
1199
+  (2.2ms) CREATE INDEX "index_pulitzer_tags_on_hierarchical" ON "pulitzer_tags" ("hierarchical")
1200
+  (4.6ms) CREATE TABLE "pulitzer_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer DEFAULT 0, "post_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "cloning_errors" text)
1201
+  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1202
+  (0.2ms) SELECT version FROM "schema_migrations"
1203
+  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20170602204900')
1204
+  (1.2ms) INSERT INTO schema_migrations (version) VALUES
1205
+ ('20170526212313'),
1206
+ ('20170526212330'),
1207
+ ('20170530145657'),
1208
+ ('20170530164044'),
1209
+ ('20170531164349'),
1210
+ ('20170601195822');
1211
+
1212
+ 
1213
+  (7.0ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1214
+ ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
1215
+  (0.1ms) begin transaction
1216
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", 2017-06-05 15:46:18 UTC], ["updated_at", 2017-06-05 15:46:18 UTC]]
1217
+  (0.6ms) commit transaction
1218
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
1219
+  (0.1ms) begin transaction
1220
+  (0.1ms) commit transaction