mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
4027643f7f
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. |
||
---|---|---|
.. | ||
dbconsole_command.rb |