Skip to content

Instantly share code, notes, and snippets.

@demonbane
Forked from eddorre/Rails Migration
Created February 26, 2010 01:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save demonbane/315304 to your computer and use it in GitHub Desktop.
Save demonbane/315304 to your computer and use it in GitHub Desktop.
function migrate rollback () {
if [ -z "$1" ]; then
rake db:"$0" RAILS_ENV=development && rake db:"$0" RAILS_ENV=test
else
rake db:"$0" RAILS_ENV="$1"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment