Class: CreateTramwayUsers

Inherits:
Object
  • Object
show all
Defined in:
lib/tramway/generators/templates/create_tramway_users.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/tramway/generators/templates/create_tramway_users.rb', line 4

def change
  create_table :tramway_users do |t|
    t.text :email
    t.text :password_digest
    t.text :first_name
    t.text :last_name
    t.text :avatar
    t.text :role
    t.text :phone
    t.datetime :deleted_at

    t.timestamps null: false
  end
end