We are currently doing some development on a variety of branches that
each have their own set of migrations (gee, database changes on a
branch? how novel). The problem is with this strictly linear numbering
of the migrations and these alternate branches.
Let’s suppose I have branches/foo that adds two migrations
024_add_foo.rb and 025_refine_foo.rb
and then another branches/bar that adds a single migration
First, it seems obvious that I need to duplicate the development
database for each branch… Otherwise, I’m going to have version number
But then how do I manage merges etc. Is it enough to just manually
renumber migrations when a merge takes place? Has anyone developed a
well thought-out strategy here?