pulitzer 0.14.2 → 0.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/pulitzer/content_element.rb +2 -2
- data/app/models/pulitzer/post_type_content_element_type.rb +10 -16
- data/app/views/pulitzer/content_elements/_clickable_fields.html.erb +1 -1
- data/db/migrate/20170526212313_create_pulitzer_custom_option.rb +9 -0
- data/db/migrate/20170526212330_create_pulitzer_custom_option_list.rb +7 -0
- data/db/migrate/20170530145657_add_layout_to_content_elements.rb +7 -0
- data/db/migrate/20170530164044_convert_layouts.rb +13 -0
- data/db/migrate/20170531164349_create_post_type_custom_option_list.rb +8 -0
- data/db/migrate/20170601195822_add_clickable_type_to_ptcet.rb +5 -0
- data/db/migrate/20170602204900_add_style_to_content_element.rb +5 -0
- data/lib/pulitzer/version.rb +1 -1
- data/spec/controllers/pulitzer/content_elements_controller_spec.rb +35 -0
- data/spec/controllers/pulitzer/post_type_content_element_types_controller_spec.rb +107 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +26 -7
- data/spec/dummy/db/seeds/pulitzer_post_types.rb +8 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +185 -0
- data/spec/dummy/log/test.log +22769 -0
- data/spec/dummy/public/uploads/pulitzer/content_element/image/23/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/pulitzer/content_element/image/23/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/pulitzer/content_element/image/23/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/pulitzer/content_element/image/45/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/pulitzer/content_element/image/45/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/pulitzer/content_element/image/45/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/pulitzer/content_element/image/67/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/pulitzer/content_element/image/67/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/pulitzer/content_element/image/67/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/pulitzer/content_element/image/901/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/pulitzer/content_element/image/901/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/pulitzer/content_element/image/901/thumb_sam_and_snow.jpg +0 -0
- data/spec/interactions/clone_version_spec.rb +2 -2
- data/spec/interactions/update_version_status_spec.rb +3 -3
- data/spec/models/content_element_spec.rb +0 -4
- data/spec/models/post_type_content_element_type_spec.rb +0 -1
- metadata +37 -4
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d306733e90cafb801b0e1fd513698611e83e530f
|
4
|
+
data.tar.gz: c00b7e70d784cf58129024c2f1c6f0ad740d5536
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
95
|
+
Pulitzer::PostTypeContentElementType::Url_clickable
|
96
96
|
else
|
97
|
-
Pulitzer::PostTypeContentElementType
|
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
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
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
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
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
|
-
[
|
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 + [
|
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,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
|
data/lib/pulitzer/version.rb
CHANGED
@@ -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
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -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:
|
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
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -1033,3 +1033,188 @@ Creating scope :free_form. Overwriting existing method Pulitzer::ContentElement.
|
|
1033
1033
|
[1m[36mPulitzer::PostType Load (0.1ms)[0m [1m[34mSELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."name" = ? LIMIT ?[0m [["name", "Welcome"], ["LIMIT", 1]]
|
1034
1034
|
[1m[36mPulitzer::PostTypeContentElementType Load (0.2ms)[0m [1m[34mSELECT "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[0m [["post_type_id", 1]]
|
1035
1035
|
[1m[36mPulitzer::FreeFormSectionType Load (0.2ms)[0m [1m[34mSELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ?[0m [["post_type_id", 1]]
|
1036
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1037
|
+
Migrating to CreatePulitzerCustomOption (20170526212313)
|
1038
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1039
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "pulitzer_custom_options" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "custom_option_list_id" integer, "display" varchar, "value" varchar)[0m
|
1040
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170526212313"]]
|
1041
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
1042
|
+
Migrating to CreatePulitzerCustomOptionList (20170526212330)
|
1043
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1044
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "pulitzer_custom_option_lists" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)[0m
|
1045
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170526212330"]]
|
1046
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
1047
|
+
Migrating to AddLayoutToContentElements (20170530145657)
|
1048
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1049
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE 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)[0m
|
1050
|
+
[1m[35m (0.4ms)[0m [1m[32mINSERT 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"[0m
|
1052
|
+
[1m[35m (0.6ms)[0m [1m[35mDROP TABLE "pulitzer_content_elements"[0m
|
1053
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE 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)[0m
|
1054
|
+
[1m[35m (0.1ms)[0m [1m[32mINSERT 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"[0m
|
1056
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE "apulitzer_content_elements"[0m
|
1057
|
+
[1m[35m (0.2ms)[0m [1m[35mALTER TABLE "pulitzer_content_elements" ADD "layout_id" integer[0m
|
1058
|
+
[1m[35m (0.2ms)[0m [1m[35mALTER TABLE "pulitzer_content_elements" ADD "custom_option_id" integer[0m
|
1059
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170530145657"]]
|
1060
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
1061
|
+
Migrating to ConvertLayouts (20170530164044)
|
1062
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1063
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE "pulitzer_layouts"[0m
|
1064
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "pulitzer_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_content_element_type_id" integer, "display_name" varchar, "css_class_name" varchar)[0m
|
1065
|
+
[1m[36mPulitzer::ContentElementType Load (0.5ms)[0m [1m[34mSELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = ? LIMIT ?[0m [["name", "Clickable"], ["LIMIT", 1]]
|
1066
|
+
[1m[36mPulitzer::ContentElementType Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = ? LIMIT ?[0m [["name", "Clickable"], ["LIMIT", 1]]
|
1067
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Clickable"], ["created_at", 2017-06-05 15:39:37 UTC], ["updated_at", 2017-06-05 15:39:37 UTC]]
|
1068
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170530164044"]]
|
1069
|
+
[1m[35m (1.1ms)[0m [1m[36mcommit transaction[0m
|
1070
|
+
Migrating to CreatePostTypeCustomOptionList (20170531164349)
|
1071
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1072
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE 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)[0m
|
1073
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170531164349"]]
|
1074
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
1075
|
+
Migrating to AddClickableTypeToPtcet (20170601195822)
|
1076
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1077
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "pulitzer_post_type_content_element_types" ADD "clickable_kind" varchar DEFAULT 'any' NOT NULL[0m
|
1078
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170601195822"]]
|
1079
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
1080
|
+
Migrating to AddStyleToContentElement (20170602204900)
|
1081
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1082
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE 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)[0m
|
1083
|
+
[1m[35m (0.1ms)[0m [1m[32mINSERT 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"[0m
|
1085
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE "pulitzer_content_elements"[0m
|
1086
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE 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)[0m
|
1087
|
+
[1m[35m (0.1ms)[0m [1m[32mINSERT 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"[0m
|
1089
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE "apulitzer_content_elements"[0m
|
1090
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170602204900"]]
|
1091
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
1092
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
1093
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1094
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
1095
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1096
|
+
[1m[35m (0.1ms)[0m [1m[34m 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
|
+
[0m
|
1104
|
+
[1m[35m (0.1ms)[0m [1m[34m 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
|
+
[0m
|
1112
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1113
|
+
[1m[35m (0.1ms)[0m [1m[34m 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
|
+
[0m
|
1121
|
+
[1m[35m (0.1ms)[0m [1m[34m 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
|
+
[0m
|
1129
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1130
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", :environment]]
|
1131
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1132
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", :environment]]
|
1133
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1134
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", :environment]]
|
1135
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "pulitzer_arrangement_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "display_name" varchar, "view_file_name" varchar)[0m
|
1136
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "pulitzer_background_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "display_name" varchar, "css_class_name" varchar)[0m
|
1137
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
1138
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE 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)[0m
|
1139
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE TABLE "pulitzer_custom_option_lists" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)[0m
|
1140
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE TABLE "pulitzer_custom_options" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "custom_option_list_id" integer, "display" varchar, "value" varchar)[0m
|
1141
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar, "sort_order" integer)[0m
|
1142
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)[0m
|
1143
|
+
[1m[35m (2.5ms)[0m [1m[35mCREATE TABLE "pulitzer_justification_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "display_name" varchar, "css_class_name" varchar)[0m
|
1144
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE 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)[0m
|
1145
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE 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)[0m
|
1146
|
+
[1m[35m (4.8ms)[0m [1m[35mCREATE 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)[0m
|
1147
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE 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)[0m
|
1148
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE 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)[0m
|
1149
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE 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)[0m
|
1150
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE 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)[0m
|
1151
|
+
[1m[35m (0.8ms)[0m [1m[34mselect sqlite_version(*)[0m
|
1152
|
+
[1m[35m (4.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug")[0m
|
1153
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "pulitzer_sequence_flow_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "display_name" varchar, "css_class_name" varchar)[0m
|
1154
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "pulitzer_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_content_element_type_id" integer, "display_name" varchar, "css_class_name" varchar)[0m
|
1155
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE 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)[0m
|
1156
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_pulitzer_tags_on_hierarchical" ON "pulitzer_tags" ("hierarchical")[0m
|
1157
|
+
[1m[35m (48.9ms)[0m [1m[35mCREATE 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)[0m
|
1158
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
1159
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
1160
|
+
[1m[35m (11.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20170602204900')[0m
|
1161
|
+
[1m[35m (16.1ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
1162
|
+
('20170526212313'),
|
1163
|
+
('20170526212330'),
|
1164
|
+
('20170530145657'),
|
1165
|
+
('20170530164044'),
|
1166
|
+
('20170531164349'),
|
1167
|
+
('20170601195822');
|
1168
|
+
|
1169
|
+
[0m
|
1170
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
1171
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
1172
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1173
|
+
[1m[35mSQL (3.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", 2017-06-05 15:46:18 UTC], ["updated_at", 2017-06-05 15:46:18 UTC]]
|
1174
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
1175
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
1176
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1177
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
1178
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "pulitzer_arrangement_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "display_name" varchar, "view_file_name" varchar)[0m
|
1179
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "pulitzer_background_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "display_name" varchar, "css_class_name" varchar)[0m
|
1180
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
1181
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE 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)[0m
|
1182
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "pulitzer_custom_option_lists" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)[0m
|
1183
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "pulitzer_custom_options" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "custom_option_list_id" integer, "display" varchar, "value" varchar)[0m
|
1184
|
+
[1m[35m (3.5ms)[0m [1m[35mCREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar, "sort_order" integer)[0m
|
1185
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)[0m
|
1186
|
+
[1m[35m (7.7ms)[0m [1m[35mCREATE TABLE "pulitzer_justification_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "display_name" varchar, "css_class_name" varchar)[0m
|
1187
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE 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)[0m
|
1188
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE 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)[0m
|
1189
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE 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)[0m
|
1190
|
+
[1m[35m (8.5ms)[0m [1m[35mCREATE 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)[0m
|
1191
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE 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)[0m
|
1192
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE 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)[0m
|
1193
|
+
[1m[35m (5.1ms)[0m [1m[35mCREATE 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)[0m
|
1194
|
+
[1m[35m (0.2ms)[0m [1m[34mselect sqlite_version(*)[0m
|
1195
|
+
[1m[35m (3.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug")[0m
|
1196
|
+
[1m[35m (6.0ms)[0m [1m[35mCREATE TABLE "pulitzer_sequence_flow_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "display_name" varchar, "css_class_name" varchar)[0m
|
1197
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "pulitzer_styles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_content_element_type_id" integer, "display_name" varchar, "css_class_name" varchar)[0m
|
1198
|
+
[1m[35m (5.6ms)[0m [1m[35mCREATE 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)[0m
|
1199
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_pulitzer_tags_on_hierarchical" ON "pulitzer_tags" ("hierarchical")[0m
|
1200
|
+
[1m[35m (4.6ms)[0m [1m[35mCREATE 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)[0m
|
1201
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
1202
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
1203
|
+
[1m[35m (3.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20170602204900')[0m
|
1204
|
+
[1m[35m (1.2ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
1205
|
+
('20170526212313'),
|
1206
|
+
('20170526212330'),
|
1207
|
+
('20170530145657'),
|
1208
|
+
('20170530164044'),
|
1209
|
+
('20170531164349'),
|
1210
|
+
('20170601195822');
|
1211
|
+
|
1212
|
+
[0m
|
1213
|
+
[1m[35m (7.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
1214
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.9ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
1215
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1216
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", 2017-06-05 15:46:18 UTC], ["updated_at", 2017-06-05 15:46:18 UTC]]
|
1217
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
1218
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
1219
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1220
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|