Rails Migrations in Git Branches
For those of you that don’t stalk follow my other streams:
Migration Buddy
Or, “the inevitable renumbering and conflict-resolution of miggy tardust”
This is a tool to help merge rails branches with conflicting migrations. The basic idea goes like this:
- First you migrate down to the migration you were at when you branched.
- Renumber any new migrations you created that conflict with any new migrations in the target branch.
- Commit the renames.
- Merge to the target branch (usually ‘master’).
- Migrate back up.
Wow, what a pain, right? (Apologies to Saul Williams, you rock).
I keep threatening, but I may have to replace this blog with a combination twitter / tumblr / github stream.

by Eric Duminil on 02 Jan 01:26
"It'll probably be included in Rails." Well, probably not, since migrationsfilenames are now written : db/migrate/20090102092616_create_users.rb Could be interesting for apps older than 2.x though! PS: Wait, 'March 25' Nevermind!