Precommit stuff for migrations