summaryrefslogtreecommitdiff
path: root/db/migrate/20140401215809_add_hidden_attrs_to_user.rb
diff options
context:
space:
mode:
authornfoy <nfoy@purdue.edu>2014-04-01 18:46:22 -0400
committernfoy <nfoy@purdue.edu>2014-04-01 18:46:22 -0400
commit2b79a033262dfe610eb22b7f6b3614db9cb134b1 (patch)
tree2bb77aa81022e7c01cccfb67127c7acd2fbb65aa /db/migrate/20140401215809_add_hidden_attrs_to_user.rb
parentf08191c3966851b19edc949d7819cc58190037d7 (diff)
parente6b160bd81e51e0bd88e5c2563a06ea5f0d64620 (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'db/migrate/20140401215809_add_hidden_attrs_to_user.rb')
-rw-r--r--db/migrate/20140401215809_add_hidden_attrs_to_user.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20140401215809_add_hidden_attrs_to_user.rb b/db/migrate/20140401215809_add_hidden_attrs_to_user.rb
new file mode 100644
index 0000000..2f1b0b2
--- /dev/null
+++ b/db/migrate/20140401215809_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