Skip to content

Instantly share code, notes, and snippets.

@PabloVallejo
Last active August 29, 2015 14:10
Show Gist options
  • Save PabloVallejo/3ff3cce6eefecacb9e03 to your computer and use it in GitHub Desktop.
Save PabloVallejo/3ff3cce6eefecacb9e03 to your computer and use it in GitHub Desktop.
Rails migrations
# 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