Skip to content

Instantly share code, notes, and snippets.

@klebervirgilio
Last active December 13, 2015 18:59
Show Gist options
  • Save klebervirgilio/4959698 to your computer and use it in GitHub Desktop.
Save klebervirgilio/4959698 to your computer and use it in GitHub Desktop.
be rake db:migrate:down VERSION=$(ruby -e 'print Dir["./db/migrate/**"].last.match(/\/(?<s>\d+)/)[:s]')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment