From d0545c2820d101a98b3c895cf6e3691145a62f3c Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 5 Mar 2014 21:48:54 -0500 Subject: use separate migrations to make things hidden, add user#groups:integer --- db/migrate/20140306024744_add_hidden_attrs_to_user.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 db/migrate/20140306024744_add_hidden_attrs_to_user.rb (limited to 'db/migrate/20140306024744_add_hidden_attrs_to_user.rb') diff --git a/db/migrate/20140306024744_add_hidden_attrs_to_user.rb b/db/migrate/20140306024744_add_hidden_attrs_to_user.rb new file mode 100644 index 0000000..2f1b0b2 --- /dev/null +++ b/db/migrate/20140306024744_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 -- cgit v1.2.3-2-g168b