No need for remember_token indexes.

This commit is contained in:
José Valim 2009-10-21 00:27:35 -02:00
parent 2fe1a69b39
commit fcea58680d
3 changed files with 1 additions and 3 deletions

2
.gitignore vendored
View File

@ -5,4 +5,4 @@ coverage/*
*.sqlite3
rdoc/*
devise.gemspec
pkg/
pkg

View File

@ -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:

View File

@ -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
#