1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #42666 from justin808/patch-1

Improve logging of schema cache at startup.
This commit is contained in:
Jean Boussier 2021-07-08 10:02:41 +02:00 committed by GitHub
commit 197fb159ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -150,11 +150,12 @@ To keep using the current cache store, you can turn off cache versioning entirel
next if current_version.nil?
if cache.version != current_version
warn "Ignoring #{filename} because it has expired. The current schema version is #{current_version}, but the one in the cache is #{cache.version}."
warn "Ignoring #{filename} because it has expired. The current schema version is #{current_version}, but the one in the schema cache file is #{cache.version}."
next
end
end
Rails.logger.info("Using schema cache file #{filename}")
connection_pool.set_schema_cache(cache)
end
end