1
0
Fork 0
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:
Aaron Patterson 2020-02-05 08:52:51 -08:00 committed by GitHub
commit 25c3807956
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,