pages_cms 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/20150609171657_create_initial_db.rb +171 -0
- data/lib/pages_cms/version.rb +1 -1
- metadata +2 -3
- data/test/dummy/db/schema.rb +0 -216
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1057c88ead89073766b04778b7164726e8cfeccd
|
4
|
+
data.tar.gz: 0cb41b0c2c2db5ab568f2f2ef5c3da20dfc082c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61dd4f45fde713c17dc1720b5dff86bb7a10611e427e3c6d895a2245bb2868d1e8c6dca09829d15a385b7230738bf44bcdda6351fc0bf9040d2c356e8ef019ac
|
7
|
+
data.tar.gz: d742f1052f8a6b0c80433c672357814a31e52c98d8f4fd634a561e1ae7986318fc3fa1c523b1a9378ab95ec2a09ddfca95447d0041124772abd5551c8db1379b
|
@@ -0,0 +1,171 @@
|
|
1
|
+
class CreateInitialDb < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :pages_cms_accounts do |t|
|
5
|
+
t.string :name
|
6
|
+
t.string :site_name, default: ''
|
7
|
+
t.string :email, default: ''
|
8
|
+
t.string :web_address
|
9
|
+
t.string :mount_location, default: '/'
|
10
|
+
t.string :meta_tags, default: ''
|
11
|
+
t.string :meta_description, default: ''
|
12
|
+
|
13
|
+
t.timestamps null: false
|
14
|
+
end
|
15
|
+
|
16
|
+
create_table :pages_cms_pages do |t|
|
17
|
+
t.integer :account_id, index: true
|
18
|
+
t.string :title
|
19
|
+
t.string :slug
|
20
|
+
t.string :meta_tags
|
21
|
+
t.string :meta_description
|
22
|
+
t.boolean :draft
|
23
|
+
t.integer :parent_id, index: true
|
24
|
+
t.integer :order
|
25
|
+
t.boolean :navbar_show, default: true
|
26
|
+
t.boolean :sidebar_show, default: true
|
27
|
+
|
28
|
+
t.timestamps null: false
|
29
|
+
end
|
30
|
+
add_foreign_key :pages_cms_pages, :pages_cms_accounts, column: :account_id
|
31
|
+
|
32
|
+
create_table :pages_cms_images do |t|
|
33
|
+
t.integer :account_id, index: true
|
34
|
+
t.string :name
|
35
|
+
t.string :file
|
36
|
+
|
37
|
+
t.timestamps null: false
|
38
|
+
end
|
39
|
+
add_foreign_key :pages_cms_images, :pages_cms_accounts, column: :account_id
|
40
|
+
|
41
|
+
create_table :pages_cms_page_blocks do |t|
|
42
|
+
t.integer :page_id, index: true
|
43
|
+
t.integer :order
|
44
|
+
t.string :name
|
45
|
+
t.string :div_id
|
46
|
+
|
47
|
+
t.timestamps null: false
|
48
|
+
end
|
49
|
+
add_foreign_key :pages_cms_page_blocks, :pages_cms_pages, column: :page_id
|
50
|
+
|
51
|
+
create_table :pages_cms_thumbnails do |t|
|
52
|
+
t.integer :page_block_id, index: true
|
53
|
+
t.integer :image_id, index: true
|
54
|
+
t.text :content
|
55
|
+
t.string :link
|
56
|
+
t.integer :order
|
57
|
+
|
58
|
+
t.timestamps null: false
|
59
|
+
end
|
60
|
+
add_foreign_key :pages_cms_thumbnails, :pages_cms_page_blocks, column: :page_block_id
|
61
|
+
add_foreign_key :pages_cms_thumbnails, :pages_cms_images, column: :image_id
|
62
|
+
|
63
|
+
create_table :pages_cms_text_boxes do |t|
|
64
|
+
t.integer :page_block_id, index: true
|
65
|
+
t.text :content
|
66
|
+
t.integer :order
|
67
|
+
t.string :css_class
|
68
|
+
|
69
|
+
t.timestamps null: false
|
70
|
+
end
|
71
|
+
add_foreign_key :pages_cms_text_boxes, :pages_cms_page_blocks, column: :page_block_id
|
72
|
+
|
73
|
+
create_table :pages_cms_markdown_texts do |t|
|
74
|
+
t.integer :page_block_id, index: true
|
75
|
+
t.text :content
|
76
|
+
t.text :content_rendered
|
77
|
+
t.integer :order
|
78
|
+
t.string :css_class
|
79
|
+
|
80
|
+
t.timestamps null: false
|
81
|
+
end
|
82
|
+
add_foreign_key :pages_cms_markdown_texts, :pages_cms_page_blocks, column: :page_block_id
|
83
|
+
|
84
|
+
create_table :pages_cms_image_boxes do |t|
|
85
|
+
t.integer :page_block_id, index: true
|
86
|
+
t.integer :image_id, index: true
|
87
|
+
t.string :link
|
88
|
+
t.string :heading
|
89
|
+
t.text :content
|
90
|
+
t.integer :order
|
91
|
+
|
92
|
+
t.timestamps null: false
|
93
|
+
end
|
94
|
+
add_foreign_key :pages_cms_image_boxes, :pages_cms_page_blocks, column: :page_block_id
|
95
|
+
add_foreign_key :pages_cms_image_boxes, :pages_cms_images, column: :image_id
|
96
|
+
|
97
|
+
create_table :pages_cms_blog_feeds do |t|
|
98
|
+
t.integer :page_block_id, index: true
|
99
|
+
t.integer :limit
|
100
|
+
|
101
|
+
t.timestamps null: false
|
102
|
+
end
|
103
|
+
add_foreign_key :pages_cms_blog_feeds, :pages_cms_page_blocks, column: :page_block_id
|
104
|
+
|
105
|
+
create_table :pages_cms_contact_fields do |t|
|
106
|
+
t.integer :page_block_id, index: true
|
107
|
+
t.text :content
|
108
|
+
|
109
|
+
t.timestamps null: false
|
110
|
+
end
|
111
|
+
add_foreign_key :pages_cms_contact_fields, :pages_cms_page_blocks, column: :page_block_id
|
112
|
+
|
113
|
+
create_table :pages_cms_contacts do |t|
|
114
|
+
t.integer :account_id, index: true
|
115
|
+
t.string :name
|
116
|
+
t.string :email
|
117
|
+
t.text :message
|
118
|
+
|
119
|
+
t.timestamps null: false
|
120
|
+
end
|
121
|
+
add_foreign_key :pages_cms_contacts, :pages_cms_accounts, column: :account_id
|
122
|
+
|
123
|
+
create_table :pages_cms_sidebars do |t|
|
124
|
+
t.integer :page_id, index: true
|
125
|
+
t.integer :use_instead
|
126
|
+
t.text :content
|
127
|
+
t.boolean :show, default: true
|
128
|
+
t.boolean :fb_feed, default: false
|
129
|
+
t.boolean :tw_feed, default: false
|
130
|
+
t.boolean :all_tags, default: false
|
131
|
+
t.boolean :all_posts, default: false
|
132
|
+
t.boolean :all_pages, default: false
|
133
|
+
t.boolean :blog_search, default: false
|
134
|
+
t.text :links
|
135
|
+
|
136
|
+
t.timestamps null: false
|
137
|
+
end
|
138
|
+
add_foreign_key :pages_cms_sidebars, :pages_cms_pages, column: :page_id
|
139
|
+
|
140
|
+
create_table :pages_cms_sliders do |t|
|
141
|
+
t.integer :page_id, index: true
|
142
|
+
t.integer :image_id, index: true
|
143
|
+
t.string :header
|
144
|
+
t.string :subheading
|
145
|
+
t.string :link
|
146
|
+
t.integer :order
|
147
|
+
t.boolean :show
|
148
|
+
|
149
|
+
t.timestamps null: false
|
150
|
+
end
|
151
|
+
add_foreign_key :pages_cms_sliders, :pages_cms_pages, column: :page_id
|
152
|
+
add_foreign_key :pages_cms_sliders, :pages_cms_images, column: :image_id
|
153
|
+
|
154
|
+
create_table :pages_cms_articles do |t|
|
155
|
+
t.integer :image_id, index: true
|
156
|
+
t.integer :account_id, index: true
|
157
|
+
t.text :content
|
158
|
+
t.text :content_md
|
159
|
+
t.text :content_md_rendered
|
160
|
+
t.string :title
|
161
|
+
t.boolean :draft, default: false
|
162
|
+
t.boolean :archived, default: false
|
163
|
+
t.text :tags, array: true, default: []
|
164
|
+
|
165
|
+
t.timestamps null: false
|
166
|
+
end
|
167
|
+
add_foreign_key :pages_cms_articles, :pages_cms_images, column: :image_id
|
168
|
+
add_foreign_key :pages_cms_articles, :pages_cms_accounts, column: :account_id
|
169
|
+
|
170
|
+
end
|
171
|
+
end
|
data/lib/pages_cms/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pages_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin Walker
|
@@ -298,6 +298,7 @@ files:
|
|
298
298
|
- app/views/pages_cms/pages/_slider.html.erb
|
299
299
|
- app/views/pages_cms/pages/show.html.haml
|
300
300
|
- config/routes.rb
|
301
|
+
- db/migrate/20150609171657_create_initial_db.rb
|
301
302
|
- lib/generators/pages_cms/Install_generator.rb
|
302
303
|
- lib/generators/pages_cms/views_generator.rb
|
303
304
|
- lib/pages_cms.rb
|
@@ -335,7 +336,6 @@ files:
|
|
335
336
|
- test/dummy/config/routes.rb
|
336
337
|
- test/dummy/config/secrets.yml
|
337
338
|
- test/dummy/db/migrate/20150609171657_create_initial_db.rb
|
338
|
-
- test/dummy/db/schema.rb
|
339
339
|
- test/dummy/log/development.log
|
340
340
|
- test/dummy/log/test.log
|
341
341
|
- test/dummy/public/404.html
|
@@ -4277,7 +4277,6 @@ test_files:
|
|
4277
4277
|
- test/dummy/config/secrets.yml
|
4278
4278
|
- test/dummy/config.ru
|
4279
4279
|
- test/dummy/db/migrate/20150609171657_create_initial_db.rb
|
4280
|
-
- test/dummy/db/schema.rb
|
4281
4280
|
- test/dummy/log/development.log
|
4282
4281
|
- test/dummy/log/test.log
|
4283
4282
|
- test/dummy/public/404.html
|
data/test/dummy/db/schema.rb
DELETED
@@ -1,216 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
# This file is auto-generated from the current state of the database. Instead
|
3
|
-
# of editing this file, please use the migrations feature of Active Record to
|
4
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
-
#
|
6
|
-
# Note that this schema.rb definition is the authoritative source for your
|
7
|
-
# database schema. If you need to create the application database on another
|
8
|
-
# system, you should be using db:schema:load, not running all the migrations
|
9
|
-
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
-
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
-
#
|
12
|
-
# It's strongly recommended that you check this file into your version control system.
|
13
|
-
|
14
|
-
ActiveRecord::Schema.define(version: 20150609171657) do
|
15
|
-
|
16
|
-
# These are extensions that must be enabled in order to support this database
|
17
|
-
enable_extension "plpgsql"
|
18
|
-
|
19
|
-
create_table "pages_cms_accounts", force: :cascade do |t|
|
20
|
-
t.string "name"
|
21
|
-
t.string "site_name", default: ""
|
22
|
-
t.string "email", default: ""
|
23
|
-
t.string "web_address"
|
24
|
-
t.string "mount_location", default: "/"
|
25
|
-
t.string "meta_tags", default: ""
|
26
|
-
t.string "meta_description", default: ""
|
27
|
-
t.datetime "created_at", null: false
|
28
|
-
t.datetime "updated_at", null: false
|
29
|
-
end
|
30
|
-
|
31
|
-
create_table "pages_cms_articles", force: :cascade do |t|
|
32
|
-
t.integer "image_id"
|
33
|
-
t.integer "account_id"
|
34
|
-
t.text "content"
|
35
|
-
t.text "content_md"
|
36
|
-
t.text "content_md_rendered"
|
37
|
-
t.string "title"
|
38
|
-
t.boolean "draft", default: false
|
39
|
-
t.boolean "archived", default: false
|
40
|
-
t.text "tags", default: [], array: true
|
41
|
-
t.datetime "created_at", null: false
|
42
|
-
t.datetime "updated_at", null: false
|
43
|
-
end
|
44
|
-
|
45
|
-
add_index "pages_cms_articles", ["account_id"], name: "index_pages_cms_articles_on_account_id", using: :btree
|
46
|
-
add_index "pages_cms_articles", ["image_id"], name: "index_pages_cms_articles_on_image_id", using: :btree
|
47
|
-
|
48
|
-
create_table "pages_cms_blog_feeds", force: :cascade do |t|
|
49
|
-
t.integer "page_block_id"
|
50
|
-
t.integer "limit"
|
51
|
-
t.datetime "created_at", null: false
|
52
|
-
t.datetime "updated_at", null: false
|
53
|
-
end
|
54
|
-
|
55
|
-
add_index "pages_cms_blog_feeds", ["page_block_id"], name: "index_pages_cms_blog_feeds_on_page_block_id", using: :btree
|
56
|
-
|
57
|
-
create_table "pages_cms_contact_fields", force: :cascade do |t|
|
58
|
-
t.integer "page_block_id"
|
59
|
-
t.text "content"
|
60
|
-
t.datetime "created_at", null: false
|
61
|
-
t.datetime "updated_at", null: false
|
62
|
-
end
|
63
|
-
|
64
|
-
add_index "pages_cms_contact_fields", ["page_block_id"], name: "index_pages_cms_contact_fields_on_page_block_id", using: :btree
|
65
|
-
|
66
|
-
create_table "pages_cms_contacts", force: :cascade do |t|
|
67
|
-
t.integer "account_id"
|
68
|
-
t.string "name"
|
69
|
-
t.string "email"
|
70
|
-
t.text "message"
|
71
|
-
t.datetime "created_at", null: false
|
72
|
-
t.datetime "updated_at", null: false
|
73
|
-
end
|
74
|
-
|
75
|
-
add_index "pages_cms_contacts", ["account_id"], name: "index_pages_cms_contacts_on_account_id", using: :btree
|
76
|
-
|
77
|
-
create_table "pages_cms_image_boxes", force: :cascade do |t|
|
78
|
-
t.integer "page_block_id"
|
79
|
-
t.integer "image_id"
|
80
|
-
t.string "link"
|
81
|
-
t.string "heading"
|
82
|
-
t.text "content"
|
83
|
-
t.integer "order"
|
84
|
-
t.datetime "created_at", null: false
|
85
|
-
t.datetime "updated_at", null: false
|
86
|
-
end
|
87
|
-
|
88
|
-
add_index "pages_cms_image_boxes", ["image_id"], name: "index_pages_cms_image_boxes_on_image_id", using: :btree
|
89
|
-
add_index "pages_cms_image_boxes", ["page_block_id"], name: "index_pages_cms_image_boxes_on_page_block_id", using: :btree
|
90
|
-
|
91
|
-
create_table "pages_cms_images", force: :cascade do |t|
|
92
|
-
t.integer "account_id"
|
93
|
-
t.string "name"
|
94
|
-
t.string "file"
|
95
|
-
t.datetime "created_at", null: false
|
96
|
-
t.datetime "updated_at", null: false
|
97
|
-
end
|
98
|
-
|
99
|
-
add_index "pages_cms_images", ["account_id"], name: "index_pages_cms_images_on_account_id", using: :btree
|
100
|
-
|
101
|
-
create_table "pages_cms_markdown_texts", force: :cascade do |t|
|
102
|
-
t.integer "page_block_id"
|
103
|
-
t.text "content"
|
104
|
-
t.text "content_rendered"
|
105
|
-
t.integer "order"
|
106
|
-
t.string "css_class"
|
107
|
-
t.datetime "created_at", null: false
|
108
|
-
t.datetime "updated_at", null: false
|
109
|
-
end
|
110
|
-
|
111
|
-
add_index "pages_cms_markdown_texts", ["page_block_id"], name: "index_pages_cms_markdown_texts_on_page_block_id", using: :btree
|
112
|
-
|
113
|
-
create_table "pages_cms_page_blocks", force: :cascade do |t|
|
114
|
-
t.integer "page_id"
|
115
|
-
t.integer "order"
|
116
|
-
t.string "name"
|
117
|
-
t.string "div_id"
|
118
|
-
t.datetime "created_at", null: false
|
119
|
-
t.datetime "updated_at", null: false
|
120
|
-
end
|
121
|
-
|
122
|
-
add_index "pages_cms_page_blocks", ["page_id"], name: "index_pages_cms_page_blocks_on_page_id", using: :btree
|
123
|
-
|
124
|
-
create_table "pages_cms_pages", force: :cascade do |t|
|
125
|
-
t.integer "account_id"
|
126
|
-
t.string "title"
|
127
|
-
t.string "slug"
|
128
|
-
t.string "meta_tags"
|
129
|
-
t.string "meta_description"
|
130
|
-
t.boolean "draft"
|
131
|
-
t.integer "parent_id"
|
132
|
-
t.integer "order"
|
133
|
-
t.boolean "navbar_show", default: true
|
134
|
-
t.boolean "sidebar_show", default: true
|
135
|
-
t.datetime "created_at", null: false
|
136
|
-
t.datetime "updated_at", null: false
|
137
|
-
end
|
138
|
-
|
139
|
-
add_index "pages_cms_pages", ["account_id"], name: "index_pages_cms_pages_on_account_id", using: :btree
|
140
|
-
add_index "pages_cms_pages", ["parent_id"], name: "index_pages_cms_pages_on_parent_id", using: :btree
|
141
|
-
|
142
|
-
create_table "pages_cms_sidebars", force: :cascade do |t|
|
143
|
-
t.integer "page_id"
|
144
|
-
t.integer "use_instead"
|
145
|
-
t.text "content"
|
146
|
-
t.boolean "show", default: true
|
147
|
-
t.boolean "fb_feed", default: false
|
148
|
-
t.boolean "tw_feed", default: false
|
149
|
-
t.boolean "all_tags", default: false
|
150
|
-
t.boolean "all_posts", default: false
|
151
|
-
t.boolean "all_pages", default: false
|
152
|
-
t.boolean "blog_search", default: false
|
153
|
-
t.text "links"
|
154
|
-
t.datetime "created_at", null: false
|
155
|
-
t.datetime "updated_at", null: false
|
156
|
-
end
|
157
|
-
|
158
|
-
add_index "pages_cms_sidebars", ["page_id"], name: "index_pages_cms_sidebars_on_page_id", using: :btree
|
159
|
-
|
160
|
-
create_table "pages_cms_sliders", force: :cascade do |t|
|
161
|
-
t.integer "page_id"
|
162
|
-
t.integer "image_id"
|
163
|
-
t.string "header"
|
164
|
-
t.string "subheading"
|
165
|
-
t.string "link"
|
166
|
-
t.integer "order"
|
167
|
-
t.boolean "show"
|
168
|
-
t.datetime "created_at", null: false
|
169
|
-
t.datetime "updated_at", null: false
|
170
|
-
end
|
171
|
-
|
172
|
-
add_index "pages_cms_sliders", ["image_id"], name: "index_pages_cms_sliders_on_image_id", using: :btree
|
173
|
-
add_index "pages_cms_sliders", ["page_id"], name: "index_pages_cms_sliders_on_page_id", using: :btree
|
174
|
-
|
175
|
-
create_table "pages_cms_text_boxes", force: :cascade do |t|
|
176
|
-
t.integer "page_block_id"
|
177
|
-
t.text "content"
|
178
|
-
t.integer "order"
|
179
|
-
t.string "css_class"
|
180
|
-
t.datetime "created_at", null: false
|
181
|
-
t.datetime "updated_at", null: false
|
182
|
-
end
|
183
|
-
|
184
|
-
add_index "pages_cms_text_boxes", ["page_block_id"], name: "index_pages_cms_text_boxes_on_page_block_id", using: :btree
|
185
|
-
|
186
|
-
create_table "pages_cms_thumbnails", force: :cascade do |t|
|
187
|
-
t.integer "page_block_id"
|
188
|
-
t.integer "image_id"
|
189
|
-
t.text "content"
|
190
|
-
t.string "link"
|
191
|
-
t.integer "order"
|
192
|
-
t.datetime "created_at", null: false
|
193
|
-
t.datetime "updated_at", null: false
|
194
|
-
end
|
195
|
-
|
196
|
-
add_index "pages_cms_thumbnails", ["image_id"], name: "index_pages_cms_thumbnails_on_image_id", using: :btree
|
197
|
-
add_index "pages_cms_thumbnails", ["page_block_id"], name: "index_pages_cms_thumbnails_on_page_block_id", using: :btree
|
198
|
-
|
199
|
-
add_foreign_key "pages_cms_articles", "pages_cms_accounts", column: "account_id"
|
200
|
-
add_foreign_key "pages_cms_articles", "pages_cms_images", column: "image_id"
|
201
|
-
add_foreign_key "pages_cms_blog_feeds", "pages_cms_page_blocks", column: "page_block_id"
|
202
|
-
add_foreign_key "pages_cms_contact_fields", "pages_cms_page_blocks", column: "page_block_id"
|
203
|
-
add_foreign_key "pages_cms_contacts", "pages_cms_accounts", column: "account_id"
|
204
|
-
add_foreign_key "pages_cms_image_boxes", "pages_cms_images", column: "image_id"
|
205
|
-
add_foreign_key "pages_cms_image_boxes", "pages_cms_page_blocks", column: "page_block_id"
|
206
|
-
add_foreign_key "pages_cms_images", "pages_cms_accounts", column: "account_id"
|
207
|
-
add_foreign_key "pages_cms_markdown_texts", "pages_cms_page_blocks", column: "page_block_id"
|
208
|
-
add_foreign_key "pages_cms_page_blocks", "pages_cms_pages", column: "page_id"
|
209
|
-
add_foreign_key "pages_cms_pages", "pages_cms_accounts", column: "account_id"
|
210
|
-
add_foreign_key "pages_cms_sidebars", "pages_cms_pages", column: "page_id"
|
211
|
-
add_foreign_key "pages_cms_sliders", "pages_cms_images", column: "image_id"
|
212
|
-
add_foreign_key "pages_cms_sliders", "pages_cms_pages", column: "page_id"
|
213
|
-
add_foreign_key "pages_cms_text_boxes", "pages_cms_page_blocks", column: "page_block_id"
|
214
|
-
add_foreign_key "pages_cms_thumbnails", "pages_cms_images", column: "image_id"
|
215
|
-
add_foreign_key "pages_cms_thumbnails", "pages_cms_page_blocks", column: "page_block_id"
|
216
|
-
end
|