Class: CreateUser
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateUser
- Defined in:
- lib/generators/agendare/install/templates/create_user.rb
Instance Method Summary collapse
Instance Method Details
#down ⇒ Object
13 14 15 |
# File 'lib/generators/agendare/install/templates/create_user.rb', line 13 def down drop_table :users end |
#up ⇒ Object
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. end end |