mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
No need for remember_token indexes.
This commit is contained in:
parent
2fe1a69b39
commit
fcea58680d
3 changed files with 1 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -5,4 +5,4 @@ coverage/*
|
|||
*.sqlite3
|
||||
rdoc/*
|
||||
devise.gemspec
|
||||
pkg/
|
||||
pkg
|
||||
|
|
|
@ -56,7 +56,6 @@ You may also want to add some indexes to improve performance:
|
|||
add_index :your_table, :email
|
||||
add_index :your_table, :confirmation_token # for confirmable
|
||||
add_index :your_table, :reset_password_token # for recoverable
|
||||
add_index :your_table, :remember_token # for rememberable
|
||||
|
||||
Now let's setup a User model adding the devise line to have your authentication working:
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ module Devise
|
|||
# However this method does not add indexes. If you need them, here is the declaration:
|
||||
#
|
||||
# add_index "accounts", ["email"], :name => "email", :unique => true
|
||||
# add_index "accounts", ["remember_token"], :name => "remember_token", :unique => true
|
||||
# add_index "accounts", ["confirmation_token"], :name => "confirmation_token", :unique => true
|
||||
# add_index "accounts", ["reset_password_token"], :name => "reset_password_token", :unique => true
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue