Get notifications when there are migrations that need to be run in a Rails project:
https://img.skitch.com/20110418-c9y3ttap3tai7frc43f38qtb8e.jpg
Copy pending_migrations_check.rb and install.sh to your project in folder git_hooks/.
Install post-merge and post-checkout git hooks:
chmod +x git-hooks/install.sh && ./git-hooks/install.sh
You can specify colors and auto run migrations by editing your .git/config file, for example:
[rails]
automigrate = true
automigrateforegroundcolor = yellow
automigratebackgroundcolor = black
Supported colors are black, red, green, yellow, blue, magenta, cyan, white