1
0
Fork 0
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:
José Valim 2009-10-21 00:33:47 -02:00
parent fcea58680d
commit 0bc6d0325e

View file

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