# 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: 20140422015208) do create_table "spud_admin_permissions", force: true do |t| t.integer "user_id" t.string "name" t.boolean "access" t.datetime "created_at" t.datetime "updated_at" t.string "scope" end create_table "spud_inquiries", force: true do |t| t.string "email" t.datetime "created_at" t.datetime "updated_at" t.integer "spud_inquiry_form_id" t.text "recipients" t.string "subject" t.boolean "marked_as_read", default: false end add_index "spud_inquiries", ["marked_as_read"], name: "idx_inquiry_read", using: :btree add_index "spud_inquiries", ["spud_inquiry_form_id"], name: "idx_inquiry_form", using: :btree create_table "spud_inquiry_fields", force: true do |t| t.string "name" t.text "value" t.integer "spud_inquiry_id" t.datetime "created_at" t.datetime "updated_at" t.string "field_name" end add_index "spud_inquiry_fields", ["spud_inquiry_id"], name: "inquiry_field_parent_id", using: :btree create_table "spud_inquiry_form_fields", force: true do |t| t.integer "spud_inquiry_form_id" t.string "field_type" t.string "name" t.text "options" t.string "default_value" t.datetime "created_at" t.datetime "updated_at" t.integer "field_order" t.boolean "required" t.string "placeholder" t.string "field_name" t.string "class_name" t.string "validation_rule" t.string "validation_error_message" end add_index "spud_inquiry_form_fields", ["field_order"], name: "form_field_order", using: :btree create_table "spud_inquiry_forms", force: true do |t| t.string "name" t.text "content" t.datetime "created_at" t.datetime "updated_at" t.text "recipients" t.string "subject" t.string "url_name" t.text "thank_you_content" t.string "submit_title" end add_index "spud_inquiry_forms", ["url_name"], name: "idx_form_url_name", using: :btree create_table "spud_user_settings", force: true do |t| t.integer "spud_user_id" t.string "key" t.string "value" t.datetime "created_at" t.datetime "updated_at" end create_table "spud_users", force: true do |t| t.string "first_name" t.string "last_name" t.boolean "super_admin" t.string "login", null: false t.string "email", null: false t.string "crypted_password", null: false t.string "password_salt", null: false t.string "persistence_token", null: false t.string "single_access_token", null: false t.string "perishable_token", null: false t.integer "login_count", default: 0, null: false t.integer "failed_login_count", default: 0, null: false t.datetime "last_request_at" t.datetime "current_login_at" t.datetime "last_login_at" t.string "current_login_ip" t.string "last_login_ip" t.datetime "created_at" t.datetime "updated_at" t.string "time_zone" end add_index "spud_users", ["email"], name: "index_spud_users_on_email", using: :btree add_index "spud_users", ["login"], name: "index_spud_users_on_login", using: :btree end