Skip to content

Instantly share code, notes, and snippets.

@shadowmaru
Forked from fcoury/tm-migration.sh
Created July 17, 2009 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shadowmaru/149073 to your computer and use it in GitHub Desktop.
Save shadowmaru/149073 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