1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/rails/commands/dbconsole
eileencodes 4027643f7f Switch dbconsole config loader check
In a three-tier config environment
`configurations[environment].presence` will return `{ :primary => {
:key => value, :key => value }, :secondary => { :key => value, :key =>
value} }, which means it's not given a single config to connect to.

If we flip these however it will connect to primary because that's the
default connection, and on a two tier it will be `nil` so the code will
select the connection from the configurations rather than the
connection.
2018-03-16 12:40:34 -04:00
..
dbconsole_command.rb Switch dbconsole config loader check 2018-03-16 12:40:34 -04:00