Admin for custom pages

This commit is contained in:
Amaia Castro
2017-03-17 12:20:36 +01:00
parent 019037ebdd
commit 255b57cc85
20 changed files with 440 additions and 1 deletions

View 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

View File

@@ -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"