Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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