# 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: 20150507153614) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" create_table "spina_accounts", force: :cascade do |t| t.string "name" t.string "address" t.string "postal_code" t.string "city" t.string "phone" t.string "email" t.text "preferences" t.string "logo" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "kvk_identifier" t.string "vat_identifier" t.boolean "robots_allowed", default: false end create_table "spina_attachment_collections", force: :cascade do |t| t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "spina_attachment_collections_attachments", force: :cascade do |t| t.integer "attachment_collection_id" t.integer "attachment_id" end create_table "spina_attachments", force: :cascade do |t| t.string "file" t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "spina_colors", force: :cascade do |t| t.text "content" t.datetime "created_at" t.datetime "updated_at" end create_table "spina_inquiries", force: :cascade do |t| t.string "name" t.string "email" t.string "phone" t.text "message" t.boolean "archived", default: false t.datetime "created_at", null: false t.datetime "updated_at", null: false t.boolean "spam" end create_table "spina_layout_parts", force: :cascade do |t| t.string "title" t.string "name" t.integer "layout_partable_id" t.string "layout_partable_type" t.datetime "created_at" t.datetime "updated_at" t.integer "account_id" end create_table "spina_lines", force: :cascade do |t| t.string "content" t.datetime "created_at" t.datetime "updated_at" end create_table "spina_page_parts", force: :cascade do |t| t.string "title" t.string "name" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.integer "page_id" t.integer "page_partable_id" t.string "page_partable_type" end create_table "spina_pages", force: :cascade do |t| t.string "title" t.string "menu_title" t.string "description" t.boolean "show_in_menu", default: true t.string "slug" t.boolean "deletable", default: true t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "name" t.string "seo_title" t.boolean "skip_to_first_child", default: false t.string "view_template" t.string "layout_template" t.boolean "draft", default: false t.string "link_url" t.string "ancestry" t.integer "position" t.string "materialized_path" t.boolean "active", default: true end create_table "spina_photo_collections", force: :cascade do |t| t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "spina_photo_collections_photos", force: :cascade do |t| t.integer "photo_collection_id" t.integer "photo_id" t.integer "position" end create_table "spina_photos", force: :cascade do |t| t.string "file" t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "spina_structure_items", force: :cascade do |t| t.integer "structure_id" t.integer "position" t.datetime "created_at" t.datetime "updated_at" end add_index "spina_structure_items", ["structure_id"], name: "index_spina_structure_items_on_structure_id", using: :btree create_table "spina_structure_parts", force: :cascade do |t| t.integer "structure_item_id" t.integer "structure_partable_id" t.string "structure_partable_type" t.string "name" t.string "title" t.datetime "created_at" t.datetime "updated_at" end add_index "spina_structure_parts", ["structure_item_id"], name: "index_spina_structure_parts_on_structure_item_id", using: :btree add_index "spina_structure_parts", ["structure_partable_id"], name: "index_spina_structure_parts_on_structure_partable_id", using: :btree create_table "spina_structures", force: :cascade do |t| t.datetime "created_at" t.datetime "updated_at" end create_table "spina_texts", force: :cascade do |t| t.text "content" t.datetime "created_at" t.datetime "updated_at" end create_table "spina_users", force: :cascade do |t| t.string "name" t.string "email" t.string "password_digest" t.boolean "admin", default: false t.datetime "created_at", null: false t.datetime "updated_at", null: false t.datetime "last_logged_in" end end