spec/dummy/db/schema.rb in enju_subject-0.1.0.pre19 vs spec/dummy/db/schema.rb in enju_subject-0.1.0.pre20
- old
+ new
@@ -845,14 +845,10 @@
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "users", :force => true do |t|
- t.integer "user_group_id"
- t.integer "required_role_id"
- t.string "username"
- t.text "note"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "email", :default => "", :null => false
t.string "encrypted_password", :default => "", :null => false
t.string "reset_password_token"
@@ -861,22 +857,34 @@
t.integer "sign_in_count", :default => 0
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.string "password_salt"
- t.string "confirmation_token"
- t.datetime "confirmed_at"
t.datetime "confirmation_sent_at"
t.string "unconfirmed_email"
- t.integer "failed_attempts", :default => 0
+ t.string "username"
+ t.string "user_number"
+ t.string "state"
+ t.string "locale"
+ t.datetime "deleted_at"
+ t.datetime "expired_at"
+ t.integer "library_id", :default => 1, :null => false
+ t.integer "required_role_id", :default => 1, :null => false
+ t.integer "user_group_id", :default => 1, :null => false
+ t.text "note"
+ t.text "keyword_list"
+ t.integer "failed_attempts"
t.string "unlock_token"
t.datetime "locked_at"
- t.string "authentication_token"
+ t.datetime "confirmed_at"
end
add_index "users", ["email"], :name => "index_users_on_email"
add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
+ add_index "users", ["unlock_token"], :name => "index_users_on_unlock_token", :unique => true
+ add_index "users", ["user_group_id"], :name => "index_users_on_user_group_id"
+ add_index "users", ["user_number"], :name => "index_users_on_user_number", :unique => true
+ add_index "users", ["username"], :name => "index_users_on_username", :unique => true
create_table "versions", :force => true do |t|
t.string "item_type", :null => false
t.integer "item_id", :null => false
t.string "event", :null => false