Posts By: Hunter Madison

Two Headed Cat! Using Secondbase to provide some level of sanity in a two-database Rails application.

Rails has never played nice with using multiple databases. While it is very easy to go and set up a new connection via ActiveRecord.establish_connection, the niceties that rails provides just don't exist for your second database. Fixtures don't work without explicitly calling set_fixture_class and you do not have access to any of the database tasks or generators that are provided by rails. To help alleviate this pain point for us at CustomInk, Karle Durante wrote SecondBase five years ago to...

Read More