Multiple Databases with Active Record — Ruby on Rails Guides

This guide covers using multiple databases with your Rails application.After reading this guide you will know: How to set up your application for multiple databases. How automatic connection switching works. How to use horizontal sharding for multiple databases. What features are supported and what…