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 => 20100901130613) do
15 create_table "roles", :force => true do |t|
17 t.datetime "created_at"
18 t.datetime "updated_at"
21 create_table "roles_users", :id => false, :force => true do |t|
26 create_table "users", :force => true do |t|
27 t.string "email", :default => "", :null => false
28 t.string "encrypted_password", :default => ""
29 t.string "password_salt", :default => ""
30 t.string "reset_password_token"
31 t.string "remember_token"
32 t.datetime "remember_created_at"
33 t.integer "sign_in_count", :default => 0
34 t.datetime "current_sign_in_at"
35 t.datetime "last_sign_in_at"
36 t.string "current_sign_in_ip"
37 t.string "last_sign_in_ip"
38 t.integer "failed_attempts", :default => 0
39 t.string "unlock_token"
40 t.datetime "locked_at"
41 t.string "authentication_token"
42 t.datetime "created_at"
43 t.datetime "updated_at"
44 t.string "invitation_token", :limit => 20
45 t.datetime "invitation_sent_at"
48 add_index "users", ["email"], :name => "index_users_on_email", :unique => true
49 add_index "users", ["invitation_token"], :name => "index_users_on_invitation_token"
50 add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
51 add_index "users", ["unlock_token"], :name => "index_users_on_unlock_token", :unique => true