mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #38383 from kytrinyx/schema-spec-fallback-config
Add a fallback database config when loading schema cache
This commit is contained in:
commit
25c3807956
1 changed files with 2 additions and 0 deletions
|
@ -132,6 +132,8 @@ To keep using the current cache store, you can turn off cache versioning entirel
|
|||
env_name: Rails.env,
|
||||
spec_name: "primary",
|
||||
)
|
||||
next if db_config.nil?
|
||||
|
||||
filename = ActiveRecord::Tasks::DatabaseTasks.cache_dump_filename(
|
||||
db_config.spec_name,
|
||||
schema_cache_path: db_config.schema_cache_path,
|
||||
|
|
Loading…
Reference in a new issue