mirror of https://github.com/rails/rails
Merge pull request #35663 from eileencodes/fix-database-configuration-when-not-actually-a-three-tier
Fix database configuration when adding another config level
This commit is contained in:
commit
6e94127dd2
|
@ -106,7 +106,7 @@ module ActiveRecord
|
|||
|
||||
build_db_config = configs.each_pair.flat_map do |env_name, config|
|
||||
walk_configs(env_name.to_s, "primary", config)
|
||||
end.compact
|
||||
end.flatten.compact
|
||||
|
||||
if url = ENV["DATABASE_URL"]
|
||||
build_url_config(url, build_db_config)
|
||||
|
|
|
@ -123,6 +123,8 @@ module TestHelpers
|
|||
adapter: sqlite3
|
||||
pool: 5
|
||||
timeout: 5000
|
||||
variables:
|
||||
statement_timeout: 1000
|
||||
development:
|
||||
primary:
|
||||
<<: *default
|
||||
|
|
Loading…
Reference in New Issue