I think everybody had that problem. When you colleague creates a migration and you forget to run it after git pull. As I understand, this can be done by post-checkout git hook. Is there a ready solution?
If not, suggest how to make this check. Simple solution is to run rake db:abort_if_pending_migrations in git hook, but it will be too slow.