How to use a different database for each branch in Rails

Nate Berkopec asked on Twitter:

With a Rails app, how do you manage switching between a bunch of different branches that have different DB schemas/migration states? Blowing away the whole DB every time gets old fast.

I agree, it does get old fast, but luckily Ruby and Rails has the building blocks necessary to help us out.

Recent entries

Explore the archives

I have written about BiQ on Rails, Copenhagen.rb, Substance Lab, blogging, browsers, business, development, email, games, hardware, ideas, life, mentalized.net, movies, process, product management, programming, projects, reboot, software, technology, usability and webdesign.