diff options
author | Tomer Kimia <tkimia@purdue.edu> | 2014-03-02 18:13:51 -0500 |
---|---|---|
committer | Tomer Kimia <tkimia@purdue.edu> | 2014-03-02 18:13:51 -0500 |
commit | 38c41dc461244832d739b755e073989c61dacf47 (patch) | |
tree | 1e4c01c615c562ca1a8baa8b7612c0562d09614b /db/migrate | |
parent | 5c863b2d55d41d836c906b55951cdc8658e959ed (diff) | |
parent | 9e424027534be31696b5e065e57f65885445cafa (diff) |
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20140302210209_add_remember_token_to_users.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20140302210209_add_remember_token_to_users.rb b/db/migrate/20140302210209_add_remember_token_to_users.rb new file mode 100644 index 0000000..6d84942 --- /dev/null +++ b/db/migrate/20140302210209_add_remember_token_to_users.rb @@ -0,0 +1,8 @@ +class AddRememberTokenToUsers < ActiveRecord::Migration + #add a remember me token to the database + #this keeps a user signed in until they sign out + def change + add_column :users, :remember_token, :string + add_index :users, :remember_token + end +end |