Skip to content

Instantly share code, notes, and snippets.

@skunkworker
Last active April 30, 2020 18:33
Show Gist options
  • Save skunkworker/974a204c729a48e08c279a137c4a113a to your computer and use it in GitHub Desktop.
Save skunkworker/974a204c729a48e08c279a137c4a113a to your computer and use it in GitHub Desktop.
Bump rails migration timestamp
alias bump_migration='rename -i -v "s/(\d{14})/$(date +'%Y%m%d%H%M%S')/" $1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment