Last active
December 16, 2015 18:20
-
-
Save pbalduino/5477090 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Primeiro você criou um model chamado Contato | |
rails g model contato nome:string{60} endereco:string{100} | |
invoke active_record | |
create db/migrate/20130428145000_create_contatos.rb | |
create app/models/contato.rb | |
invoke test_unit | |
create test/unit/contato_test.rb | |
create test/fixtures/contatos.yml | |
# E depois você quis adicionar campos a tabela já pronta. | |
rails g migration AddFieldsToContato | |
invoke active_record | |
create db/migrate/20130428145029_add_fields_to_contato.rb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment