Last active
August 29, 2015 14:10
-
-
Save PabloVallejo/3ff3cce6eefecacb9e03 to your computer and use it in GitHub Desktop.
Rails migrations
This file contains 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
# Adding a column to users model. | |
rails g migration add_email_to_users email:string | |
# Reverting a migration. | |
rake db:migrate:down VERSION=3846656238 | |
# Drop a table. | |
rails g migration DropProducts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment