summaryrefslogtreecommitdiff
path: root/db/migrate/20140304043658_add_remember_token_to_users.rb
diff options
context:
space:
mode:
authorguntasgrewal <guntasgrewal@gmail.com>2014-03-04 15:25:58 -0500
committerguntasgrewal <guntasgrewal@gmail.com>2014-03-04 15:25:58 -0500
commite4ae559d8189519586e044238196ee45b2a10c6b (patch)
tree3d4977292aa234ea93ce604095f13d50484250a1 /db/migrate/20140304043658_add_remember_token_to_users.rb
parent2f450dd30bb210fdc4cb8899c72e6da945a163ba (diff)
parentda95cb4f0f48731c2713c61f17b522b048647fd1 (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
Conflicts: app/assets/stylesheets/scaffolds.css.scss app/views/layouts/application.html.erb db/migrate/20140304043618_create_servers.rb db/migrate/20140304043622_create_matches.rb db/migrate/20140304043631_create_games.rb
Diffstat (limited to 'db/migrate/20140304043658_add_remember_token_to_users.rb')
-rw-r--r--db/migrate/20140304043658_add_remember_token_to_users.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20140304043658_add_remember_token_to_users.rb b/db/migrate/20140304043658_add_remember_token_to_users.rb
new file mode 100644
index 0000000..6d84942
--- /dev/null
+++ b/db/migrate/20140304043658_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