I am about to muddle thru creating 2 hooks, but I just wanted to check if someone has these hooks already, or perhaps a better idea.
pre-push: use git diff --stat --cached origin/master to see if "migrations" are being pushed. If so, then backup the db before the push.
post-recieve: run migrations