mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-10 08:08:00 -05:00
No need for remember_token indexes.
This commit is contained in:
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
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user