Skip to content

Instantly share code, notes, and snippets.

@fcoury
Created July 17, 2009 13:51
Show Gist options
  • Save fcoury/149059 to your computer and use it in GitHub Desktop.
Save fcoury/149059 to your computer and use it in GitHub Desktop.
#
# Generates the migration and opens it in TextMate
#
# ex.:
# mig AddNewColumnToModel new_column:integer
#
function mig {
mate `script/generate migration $@ | tail -n1 | sed 's/.*create //'`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment