mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Remember: always smile and use the proper limit size in the database.
This commit is contained in:
parent
fcea58680d
commit
0bc6d0325e
1 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@ module Devise
|
|||
# Creates confirmation_token, confirmed_at and confirmation_sent_at.
|
||||
#
|
||||
def confirmable
|
||||
string :confirmation_token, :limit => 40, :null => true
|
||||
string :confirmation_token, :limit => 20
|
||||
datetime :confirmed_at
|
||||
datetime :confirmation_sent_at
|
||||
end
|
||||
|
@ -36,13 +36,13 @@ module Devise
|
|||
# Creates reset_password_token.
|
||||
#
|
||||
def recoverable
|
||||
string :reset_password_token, :limit => 40, :null => true
|
||||
string :reset_password_token, :limit => 20
|
||||
end
|
||||
|
||||
# Creates remember_token and remember_expires_at.
|
||||
#
|
||||
def rememberable
|
||||
string :remember_token, :limit => 40, :null => true
|
||||
string :remember_token, :limit => 20
|
||||
datetime :remember_expires_at
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue