Skip to content

Instantly share code, notes, and snippets.

@bdotdub
Created March 15, 2011 21:30
Show Gist options
  • Save bdotdub/871534 to your computer and use it in GitHub Desktop.
Save bdotdub/871534 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
stdin_tokens = STDIN.read.split(' ')
log_diffs = `git log --stat #{stdin_tokens[0]}..#{stdin_tokens[1]}`
if log_diffs =~ / db\/migrate\//
puts " ----------------------------------------"
puts " < YOU WILL HAVE TO RUN `rake db:migrate` >"
puts " ----------------------------------------"
puts " \\ ,__,"
puts " \\ (oo)____"
puts " (__) )\\"
puts " ||--|| *"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment