Syed Aslam

Thoughts, stories, and ideas.

Connecting to multiple databases in a Rails app

by Syed Aslam in Rails · 2 min read

A traditional Rails application uses a single application. We interact with it by writing models that inherit from ActiveRecord::Base which translate connection details (from config/database.yml) via the method establish_connection. Its a spatial application where everything is c ...