Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for new database.yml configurations with roles (#272)
Newer Rails applications may be using a [configuration for multiple databases](https://guides.rubyonrails.org/active_record_multiple_databases.html). By default, Rails will look for`primary` named connection details and use those with multiple db setup. The changes in this PR will look for and use the `primary` settings if the key exists, otherwise, it will assume it's normal, single db, database setttings which would be compatible with previous versions of Rails.
- Loading branch information