class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.string :name
      t.datetime :birthday
      t.string :email
      t.boolean :role
      t.password_digest :string
      t.remember_token :string
      t.timestamps
    end
    add_index :users, :email, unique: true
    add_index :users, :remember_token
  end
end