Skip to content

Instantly share code, notes, and snippets.

@jkmcrg
Last active August 29, 2015 14:02
Show Gist options
  • Save jkmcrg/c61e8d298158be15da26 to your computer and use it in GitHub Desktop.
Save jkmcrg/c61e8d298158be15da26 to your computer and use it in GitHub Desktop.
# opens up the latest migration from rails root
# typically use right after a generator
function vimm() {
for file in db/migrate/*; do [[ $file -nt $latest ]] && latest=$file; done; vim "$latest"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment