# encoding: UTF-8 # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # Note that this schema.rb definition is the authoritative source for your # database schema. If you need to create the application database on another # system, you should be using db:schema:load, not running all the migrations # from scratch. The latter is a flawed and unsustainable approach (the more migrations # you'll amass, the slower it'll run and the greater likelihood for issues). # # It's strongly recommended that you check this file into your version control system. ActiveRecord::Schema.define(version: 20150609171657) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" create_table "pages_cms_articles", force: :cascade do |t| t.integer "image_id" t.text "content" t.string "title" t.boolean "draft" t.boolean "archived" t.text "tags", default: [], array: true t.datetime "created_at", null: false t.datetime "updated_at", null: false end add_index "pages_cms_articles", ["image_id"], name: "index_pages_cms_articles_on_image_id", using: :btree create_table "pages_cms_images", force: :cascade do |t| t.string "name" t.string "file" t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "pages_cms_jumbotrons", force: :cascade do |t| t.integer "page_block_id" t.text "content" t.string "link" t.integer "order" t.datetime "created_at", null: false t.datetime "updated_at", null: false end add_index "pages_cms_jumbotrons", ["page_block_id"], name: "index_pages_cms_jumbotrons_on_page_block_id", using: :btree create_table "pages_cms_page_blocks", force: :cascade do |t| t.integer "page_id" t.integer "order" t.string "name" t.string "div_id" t.datetime "created_at", null: false t.datetime "updated_at", null: false end add_index "pages_cms_page_blocks", ["page_id"], name: "index_pages_cms_page_blocks_on_page_id", using: :btree create_table "pages_cms_pages", force: :cascade do |t| t.string "title" t.string "slug" t.string "meta_tags" t.string "meta_description" t.boolean "draft" t.integer "parent_id" t.integer "order" t.boolean "navbar_show", default: true t.boolean "sidebar_show", default: true t.datetime "created_at", null: false t.datetime "updated_at", null: false end add_index "pages_cms_pages", ["parent_id"], name: "index_pages_cms_pages_on_parent_id", using: :btree create_table "pages_cms_sidebars", force: :cascade do |t| t.integer "page_id" t.text "content" t.text "add_links" t.boolean "show", default: true t.integer "use_instead" t.datetime "created_at", null: false t.datetime "updated_at", null: false end add_index "pages_cms_sidebars", ["page_id"], name: "index_pages_cms_sidebars_on_page_id", using: :btree create_table "pages_cms_text_boxes", force: :cascade do |t| t.integer "page_block_id" t.text "content" t.integer "order" t.datetime "created_at", null: false t.datetime "updated_at", null: false end add_index "pages_cms_text_boxes", ["page_block_id"], name: "index_pages_cms_text_boxes_on_page_block_id", using: :btree create_table "pages_cms_thumbnails", force: :cascade do |t| t.integer "page_block_id" t.integer "image_id" t.text "content" t.string "link" t.integer "order" t.datetime "created_at", null: false t.datetime "updated_at", null: false end add_index "pages_cms_thumbnails", ["image_id"], name: "index_pages_cms_thumbnails_on_image_id", using: :btree add_index "pages_cms_thumbnails", ["page_block_id"], name: "index_pages_cms_thumbnails_on_page_block_id", using: :btree add_foreign_key "pages_cms_articles", "pages_cms_images", column: "image_id" add_foreign_key "pages_cms_jumbotrons", "pages_cms_page_blocks", column: "page_block_id" add_foreign_key "pages_cms_page_blocks", "pages_cms_pages", column: "page_id" add_foreign_key "pages_cms_sidebars", "pages_cms_pages", column: "page_id" add_foreign_key "pages_cms_text_boxes", "pages_cms_page_blocks", column: "page_block_id" add_foreign_key "pages_cms_thumbnails", "pages_cms_images", column: "image_id" add_foreign_key "pages_cms_thumbnails", "pages_cms_page_blocks", column: "page_block_id" end