Reputation: 2687
We have a decent-sized development team with a few concurrent projects being developed on the same code line. Sometimes we add migrations that are okay to run in development environment but should not be run in prod for a few months due to that project's release schedule. This has caused us to stick with Rails' original numbered migrations, rather than timestamped, since we can easily migrate up to a certain magic number and have all of the prod migrations after this magic number.
It totally feels like we're doing it wrong. We still have the issue of developers creating the same numbered migration. We can't simply keep a project on a branch for a while because the branch will diverge from trunk.
Is there a method or tool that anyone's encountered that deals with migration issues like this?
Upvotes: 2
Views: 427
Reputation: 9465
You are definitely doing it wrong ;)
Effectively managing multiple 'targets' requires a good vcs. I'd suggest git or mercurial, as good branching (and merging) support is essential.
Upvotes: 2