summaryrefslogtreecommitdiff
path: root/db/migrate/20140307023557_add_hidden_attrs_to_user.rb
blob: 2f1b0b26f1dfbc32cdd99844d9a9ddd2d39f6ea8 (plain)
1
2
3
4
5
6
7
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