Last active
December 16, 2015 18:20
-
-
Save pbalduino/5477109 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
class AddFieldsToContato < ActiveRecord::Migration | |
def change | |
change_table :contatos do |t| | |
t.string :cidade , :limit => 60 | |
t.string :cep , :limit => 8 | |
t.string :telefone, :limit => 20 | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Após executar, o resultado será parecido com esse:
rake db:migrate
== AddFieldsToContato: migrating =============================================
-- change_table(:contatos)
-> 0.0132s
== AddFieldsToContato: migrated (0.0134s) ====================================