Disable deployment from non-master branches and run DB migration at the end of deployment.