Is there a common practice how to apply migrations for staging systems running various feature branches?
Assume there is a db of significant size, and feature branches including migrations are pushed to this server instance.
rake db:migrate won’t be enough, as often it will be the situation that a feature branch introduced a schema change, and the subsequently deployed branch doesn’t work with it. So at deployment, I’d need to roll back one or more migration steps.
I know this can be done by invoking
But how would you establish what to pass as
v here from the new branch?
(Or is loading a nightly db dump and uniformly migrate upwards still the best idea?)