Skip to content

Instantly share code, notes, and snippets.

@jhsu
Created February 11, 2011 16:47
Show Gist options
  • Save jhsu/822626 to your computer and use it in GitHub Desktop.
Save jhsu/822626 to your computer and use it in GitHub Desktop.
edit the most recent rails migration
alias emigrate="$EDITOR db/migrate/$(ls -lp db/migrate | tail -1 | awk '{print $NF}')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment