Skip to content

Instantly share code, notes, and snippets.

@deevis
Created October 9, 2019 21:47
Show Gist options
  • Save deevis/6b5c0ecf0cdc97c6baf950266fb4673a to your computer and use it in GitHub Desktop.
Save deevis/6b5c0ecf0cdc97c6baf950266fb4673a to your computer and use it in GitHub Desktop.
Rails migrations histogram by year/month
for year in `seq 2017 2019`; do for month in `seq -f "%02g" 1 12`;do echo -n "$year$month";find db/migrate -iname "*.rb" | grep "/$year$month" | wc -l; done; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment