Class: CreateUsers

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/honey_auth/templates/user_migration.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
# File 'lib/generators/honey_auth/templates/user_migration.rb', line 2

def change
  create_table :users, force: true do |t|
    t.string :name
    t.string :email
    t.string :password_digest
    t.string :role, default: 'user'

    t.timestamps
  end
end