# 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 to check this file into your version control system. ActiveRecord::Schema.define(:version => 20141121172918) do create_table "card_actions", :force => true do |t| t.integer "card_id" t.integer "card_act_id" t.integer "super_action_id" t.integer "action_type" t.boolean "draft" end add_index "card_actions", ["card_act_id"], :name => "card_act_id_index" add_index "card_actions", ["card_id"], :name => "card_id_index" create_table "card_acts", :force => true do |t| t.integer "card_id" t.integer "actor_id" t.datetime "acted_at" t.string "ip_address" end add_index "card_acts", ["actor_id"], :name => "actor_id_index" add_index "card_acts", ["card_id"], :name => "card_id_index" create_table "card_changes", :force => true do |t| t.integer "card_action_id" t.integer "field" t.text "value" end add_index "card_changes", ["card_action_id"], :name => "card_action_id_index" create_table "card_references", :force => true do |t| t.integer "referer_id", :default => 0, :null => false t.string "referee_key", :default => "", :null => false t.integer "referee_id" t.string "ref_type", :limit => 1, :default => "", :null => false t.integer "present" end add_index "card_references", ["referee_id"], :name => "wiki_references_referenced_card_id" add_index "card_references", ["referee_key"], :name => "wiki_references_referenced_name" add_index "card_references", ["referer_id"], :name => "wiki_references_card_id" create_table "card_revisions", :force => true do |t| t.datetime "created_at", :null => false t.integer "card_id", :null => false t.integer "creator_id", :null => false t.text "content", :null => false end add_index "card_revisions", ["card_id"], :name => "revisions_card_id_index" add_index "card_revisions", ["creator_id"], :name => "revisions_created_by_index" create_table "cards", :force => true do |t| t.string "name", :null => false t.string "key", :null => false t.string "codename" t.integer "left_id" t.integer "right_id" t.integer "current_revision_id" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.integer "creator_id", :null => false t.integer "updater_id", :null => false t.string "read_rule_class" t.integer "read_rule_id" t.integer "references_expired" t.boolean "trash", :null => false t.integer "type_id", :null => false t.text "db_content" end add_index "cards", ["key"], :name => "cards_key_uniq", :unique => true add_index "cards", ["left_id"], :name => "index_cards_on_trunk_id" add_index "cards", ["name"], :name => "cards_name_index" add_index "cards", ["read_rule_id"], :name => "index_cards_on_read_rule_id" add_index "cards", ["right_id"], :name => "index_cards_on_tag_id" add_index "cards", ["type_id"], :name => "card_type_index" create_table "schema_migrations_core_cards", :id => false, :force => true do |t| t.string "version", :null => false end add_index "schema_migrations_core_cards", ["version"], :name => "unique_schema_migrations_cards", :unique => true create_table "schema_migrations_deck_cards", :id => false, :force => true do |t| t.string "version", :null => false end add_index "schema_migrations_deck_cards", ["version"], :name => "unique_schema_migrations_deck_cards", :unique => true create_table "sessions", :force => true do |t| t.string "session_id" t.text "data" t.datetime "updated_at" end add_index "sessions", ["session_id"], :name => "sessions_session_id_index" create_table "users", :force => true do |t| t.string "login", :limit => 40 t.string "email", :limit => 100 t.string "crypted_password", :limit => 40 t.string "salt", :limit => 42 t.datetime "created_at" t.datetime "updated_at" t.string "password_reset_code", :limit => 40 t.string "status", :default => "request" t.integer "invite_sender_id" t.string "identity_url" t.integer "card_id", :null => false t.integer "account_id", :null => false end end