class CreateUsers

Public Instance Methods

change() click to toggle source
# File lib/generators/tkh_authentication/create_or_update_migrations/templates/create_users.rb, line 2
def change
  create_table :users do |t|
    t.string :email
    t.string :password_digest
    t.string :first_name
    t.string :last_name
    t.boolean :admin, default: false
    t.string  :auth_token
    t.string  :password_reset_token
    t.datetime  :password_reset_sent_at

    t.timestamps
  end
end