Admin for custom pages
This commit is contained in:
15
db/migrate/20170316174351_create_site_customization_pages.rb
Normal file
15
db/migrate/20170316174351_create_site_customization_pages.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
class CreateSiteCustomizationPages < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :site_customization_pages do |t|
|
||||
t.string :slug, null: false
|
||||
t.string :title, null: false
|
||||
t.string :subtitle
|
||||
t.text :content
|
||||
t.boolean :more_info_flag
|
||||
t.boolean :print_content_flag
|
||||
t.string :status, default: 'draft'
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
14
db/schema.rb
14
db/schema.rb
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20170114154421) do
|
||||
ActiveRecord::Schema.define(version: 20170316174351) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
@@ -439,6 +439,18 @@ ActiveRecord::Schema.define(version: 20170114154421) do
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "site_customization_pages", force: :cascade do |t|
|
||||
t.string "slug", null: false
|
||||
t.string "title", null: false
|
||||
t.string "subtitle"
|
||||
t.text "content"
|
||||
t.boolean "more_info_flag"
|
||||
t.boolean "print_content_flag"
|
||||
t.string "status", default: "draft"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "spending_proposals", force: :cascade do |t|
|
||||
t.string "title"
|
||||
t.text "description"
|
||||
|
||||
Reference in New Issue
Block a user