summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDavisLWebb <davislwebb@ymail.com>2014-03-02 18:12:25 -0500
committerDavisLWebb <davislwebb@ymail.com>2014-03-02 18:12:25 -0500
commit9e424027534be31696b5e065e57f65885445cafa (patch)
tree565de4933ad1bc967d0e38bf488e6dae8a116361 /db
parent2426a2b1e5b6811f47f0a05dd66a001fdd117450 (diff)
THIS SHOULD COMMIT THE SESSION FILES
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20140302210209_add_remember_token_to_users.rb8
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