In 'Ruby On Rails' version 6, native support for multiple databases was introduced
The article discusses Active Record and its capability to handle multiple databases in Ruby on Rails. This feature is becoming more essential as it allows for better data organization in larger applications. With the introduction of multitenancy in Rails 6, apps can cater to multiple clients, each with their own database. The authors emphasize the importance of correctly configuring database connections and managing them effectively. Readers can learn about various methods, such as `establish_connection`, that allow the selection of the appropriate database depending on the context. Finally, the article thoroughly explains how to carry out migrations to avoid issues stemming from conflicts arising when working with multiple databases in a single application.