1 # This file is auto-generated from the current state of the database. Instead
2 # of editing this file, please use the migrations feature of Active Record to
3 # incrementally modify your database, and then regenerate this schema definition.
5 # Note that this schema.rb definition is the authoritative source for your
6 # database schema. If you need to create the application database on another
7 # system, you should be using db:schema:load, not running all the migrations
8 # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9 # you'll amass, the slower it'll run and the greater likelihood for issues).
11 # It's strongly recommended to check this file into your version control system.
13 ActiveRecord::Schema.define(:version => 20100902153434) do
15 create_table "assignments", :force => true do |t|
18 t.datetime "created_at"
19 t.datetime "updated_at"
22 create_table "roles", :force => true do |t|
24 t.datetime "created_at"
25 t.datetime "updated_at"
28 create_table "users", :force => true do |t|
29 t.string "email", :default => "", :null => false
30 t.string "encrypted_password", :default => ""
31 t.string "password_salt", :default => ""
32 t.string "reset_password_token"
33 t.string "remember_token"
34 t.datetime "remember_created_at"
35 t.integer "sign_in_count", :default => 0
36 t.datetime "current_sign_in_at"
37 t.datetime "last_sign_in_at"
38 t.string "current_sign_in_ip"
39 t.string "last_sign_in_ip"
40 t.integer "failed_attempts", :default => 0
41 t.string "unlock_token"
42 t.datetime "locked_at"
43 t.string "authentication_token"
44 t.datetime "created_at"
45 t.datetime "updated_at"
46 t.string "invitation_token", :limit => 20
47 t.datetime "invitation_sent_at"
50 add_index "users", ["email"], :name => "index_users_on_email", :unique => true
51 add_index "users", ["invitation_token"], :name => "index_users_on_invitation_token"
52 add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
53 add_index "users", ["unlock_token"], :name => "index_users_on_unlock_token", :unique => true