Class: CreateUser

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/agendare/install/templates/create_user.rb

Instance Method Summary collapse

Instance Method Details

#downObject



13
14
15
# File 'lib/generators/agendare/install/templates/create_user.rb', line 13

def down
  drop_table :users
end

#upObject



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

def up
  create_table :users do |t|
    t.string :name
    t.string :telephone
    t.string :email
    t.date   :birthday
    
    t.timestamps
  end
end