# 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: 20140802084717) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" create_table "roroacms_admins", force: true do |t| t.string "email", default: "", null: false t.text "password_digest" t.text "description" t.string "first_name" t.string "last_name" t.string "username" t.string "access_level" t.text "avatar" t.text "cover_picture" t.string "overlord", limit: 1, default: "Y" t.string "encrypted_password", default: "", null: false t.string "reset_password_token" t.datetime "reset_password_sent_at" t.datetime "remember_created_at" t.integer "sign_in_count", default: 0, null: false t.datetime "current_sign_in_at" t.datetime "last_sign_in_at" t.string "current_sign_in_ip" t.string "last_sign_in_ip" t.integer "failed_attempts", default: 0, null: false t.string "unlock_token" t.datetime "locked_at" t.datetime "created_at", null: false t.datetime "updated_at", null: false end add_index "roroacms_admins", ["email"], name: "index_admins_on_email", unique: true, using: :btree add_index "roroacms_admins", ["reset_password_token"], name: "index_admins_on_reset_password_token", unique: true, using: :btree add_index "roroacms_admins", ["username"], name: "unique_username", unique: true, using: :btree create_table "roroacms_comments", force: true do |t| t.integer "post_id" t.text "author" t.text "email" t.text "website" t.text "comment" t.text "comment_approved" t.text "parent_id" t.datetime "submitted_on" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "is_spam", limit: 1, default: "N" t.string "ancestry" end add_index "roroacms_comments", ["ancestry"], name: "index_comments_on_ancestry", using: :btree create_table "roroacms_menu_options", force: true do |t| t.integer "menu_id" t.integer "option_id" t.integer "parent_id" t.string "data_type" t.integer "lft" t.integer "rgt" t.string "label" t.text "custom_data" end create_table "roroacms_menus", force: true do |t| t.string "name" t.string "key" end create_table "roroacms_posts", force: true do |t| t.integer "admin_id" t.datetime "post_date" t.text "post_content" t.text "post_title" t.text "cover_image" t.string "post_status" t.string "post_template" t.integer "parent_id" t.string "post_type" t.text "post_slug" t.string "post_visible", default: "Y" t.text "post_additional_data" t.integer "sort_order" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "disabled", limit: 1, default: "N" t.string "post_seo_title" t.text "post_seo_description" t.string "post_seo_is_disabled", default: "N" t.string "post_seo_no_index", default: "N" t.string "post_seo_no_follow", default: "N" t.string "ancestry" t.text "structured_url" end add_index "roroacms_posts", ["ancestry"], name: "index_posts_on_ancestry", using: :btree create_table "roroacms_settings", force: true do |t| t.string "setting_name" t.text "setting" t.string "type_of_setting", limit: 11 t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "roroacms_term_anatomies", force: true do |t| t.integer "term_id" t.string "taxonomy" t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "roroacms_term_relationships", force: true do |t| t.integer "post_id" t.integer "term_id" t.datetime "created_at", null: false t.datetime "updated_at", null: false end add_index "roroacms_term_relationships", ["post_id"], name: "post_id", using: :btree create_table "roroacms_terms", force: true do |t| t.string "name" t.string "slug" t.text "structured_url" t.text "description" t.integer "parent_id" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.text "cover_image" t.string "ancestry" end add_index "roroacms_terms", ["ancestry"], name: "index_terms_on_ancestry", using: :btree end