summaryrefslogtreecommitdiff
path: root/db/migrate/20140307023557_add_hidden_attrs_to_user.rb
diff options
context:
space:
mode:
authorDavisLWebb <davislwebb@ymail.com>2014-03-06 22:21:39 -0500
committerDavisLWebb <davislwebb@ymail.com>2014-03-06 22:21:39 -0500
commite7562550fdaff859b0ead5a37e58c5f2b920ca80 (patch)
treeb68d699bf397b7167a8713d789770b7ca59bdb16 /db/migrate/20140307023557_add_hidden_attrs_to_user.rb
parent4b672af0e7893a9db1c059c97b06afeafb9c742c (diff)
parent5f2247dd1e701a91fb0359bf7265bdadd5486a60 (diff)
Merge branch 'master' of http://github.com/LukeShu/leaguer
Diffstat (limited to 'db/migrate/20140307023557_add_hidden_attrs_to_user.rb')
-rw-r--r--db/migrate/20140307023557_add_hidden_attrs_to_user.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20140307023557_add_hidden_attrs_to_user.rb b/db/migrate/20140307023557_add_hidden_attrs_to_user.rb
new file mode 100644
index 0000000..2f1b0b2
--- /dev/null
+++ b/db/migrate/20140307023557_add_hidden_attrs_to_user.rb
@@ -0,0 +1,8 @@
+class AddHiddenAttrsToUser < ActiveRecord::Migration
+ def change
+ add_column :users, :password_digest, :string
+ add_column :users, :remember_token, :string
+ add_index :users, :remember_token, unique: true
+ add_column :users, :groups, :integer
+ end
+end