Syed Aslam

Author posts

Connecting to multiple databases in a Rails app

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 ...