clean up before_migrate hook