rails/railties/test/application
Rafael Mendonça França 4d1d7d3d1b
Unify the logic to determine the default schema cache path for a database configuration
When the application has more than one database configuration, only
the primary was being loaded by default on boot time. All the other
connection pools were loading the schema cache lazily.

This logic can be found in:

351a8d9bc9/activerecord/lib/active_record/connection_adapters/pool_config.rb (L13)
351a8d9bc9/activerecord/lib/active_record/railtie.rb (L149-L178)

The lazy code path wasn't using the same logic to determine the name
of the default schema cache file that the Railties uses, so it
was loading the schema cache of the primary config to all the other
configs. If no table name coincided nothing bad would happen, but if
table names coincided, the schema would be completly wrong in all
non-primary connections.
2024-01-29 18:18:15 +00:00
..
configuration Handle all false args in config.x error check 2024-01-03 16:59:02 -06:00
initializers Delay Adapter#check_version to #configure_connection 2023-09-29 08:53:16 +02:00
middleware Enable force_ssl=true in production by default 2023-06-09 16:27:10 -07:00
rack Log the remote IP addr of clients behind a proxy 2018-07-31 20:45:37 +05:30
rake Unify the logic to determine the default schema cache path for a database configuration 2024-01-29 18:18:15 +00:00
action_controller_test_case_integration_test.rb Wrap ActionController::TestCase with Rails executor 2021-11-26 17:54:47 -06:00
asset_debugging_test.rb Enable force_ssl=true in production by default 2023-06-09 16:27:10 -07:00
assets_test.rb Remove config.public_file_server.enabled from generators 2023-11-03 11:34:37 -05:00
backtrace_cleaner_test.rb Fix class name for backtrace_cleaner_test.rb 2024-01-03 18:27:55 -06:00
bin_setup_test.rb Ignore warnings like warning: net-smtp which is not part of the default gems since Ruby 3.1.0. 2023-12-17 15:43:38 +09:00
configuration_test.rb Merge pull request #50337 from Edouard-chin/ec-log-level 2024-01-04 18:40:34 +01:00
console_test.rb Change Rails console prompt's format 2024-01-20 23:34:33 +00:00
content_security_policy_test.rb Add the ability to set the CSP nonce only to the specified directives 2019-06-22 12:44:37 +09:00
credentials_test.rb Restructure credentials after environment overrides. 2019-01-14 20:13:00 +01:00
current_attributes_integration_test.rb Use try only when we're unsure if the receiver would respond_to the method 2019-08-01 17:58:00 +09:00
dbconsole_test.rb Use storage/ instead of db/ for sqlite3 db files (#46699) 2022-12-12 08:32:12 +01:00
generators_test.rb Don't run rubocop after generation on Ruby 3.4+ 2024-01-03 21:16:19 +00:00
help_test.rb Use infinitive form verb for all task descriptions 2023-02-01 22:43:04 +01:00
integration_test_case_test.rb require, require_relative, load by double quotes (#38841) 2020-03-29 16:30:52 -07:00
loading_test.rb Make sure after_routes_loaded hook runs on boot 2024-01-15 22:26:02 +00:00
mailer_previews_test.rb Remove deprecated config.action_mailer.preview_path 2023-11-22 22:11:31 +00:00
multi_db_rake_test.rb Use storage/ instead of db/ for sqlite3 db files (#46699) 2022-12-12 08:32:12 +01:00
multiple_applications_test.rb Zeitwerk integration 2019-02-12 02:28:04 -08:00
paths_test.rb Support multiple preview paths for mailers 2022-06-30 15:09:59 +03:00
per_request_digest_cache_test.rb Reuse "main" reloader for ActionView expiration 2023-02-16 10:29:17 -08:00
permissions_policy_test.rb Use constants defined in ActionDispatch::Constants instead of conditional assignments 2023-07-27 15:21:18 -07:00
query_logs_test.rb Remove SQLite production warning but leave production config disabled 2023-12-27 23:32:18 +01:00
rackup_test.rb Remove unnecessary migration deletion 2017-11-08 13:24:16 +09:00
rake_test.rb Add a default yield :head to layouts/application.html.erb (#50527) 2024-01-02 12:16:29 +01:00
rendering_test.rb Enable force_ssl=true in production by default 2023-06-09 16:27:10 -07:00
routing_test.rb Enable force_ssl=true in production by default 2023-06-09 16:27:10 -07:00
runner_test.rb Fix rails console to work with DATABASE_URL for PostgreSQL 2023-11-18 00:52:52 +02:00
server_test.rb Remove unused requires in command test cases 2023-03-14 08:53:28 +01:00
system_test_case_test.rb Add fallback host for SystemTestCase driven by RackTest 2021-09-21 20:09:16 +02:00
test_runner_test.rb use assert_operator for better error message 2024-01-15 11:41:30 -08:00
test_test.rb Support non-column-backed attributes for enum 2023-10-24 12:03:59 -05:00
url_generation_test.rb Fix secret_key_base for Railties 2019-03-13 16:41:29 -04:00
version_test.rb Run in-app rails commands via fork+load where possible 2017-09-04 20:19:39 +09:30
view_reloading_test.rb Reuse "main" reloader for ActionView expiration 2023-02-16 10:29:17 -08:00
watcher_test.rb Prevent unnecessary application reloads in development 2024-01-11 21:35:47 +09:00
zeitwerk_checker_test.rb Update zeitwerk:check 2023-10-22 08:36:26 +02:00
zeitwerk_inflector_test.rb Move the default autoloaders inflector to railties 2021-09-04 20:44:39 +02:00
zeitwerk_integration_test.rb [Tests only] Enable Minitest/AssertPredicate rule 2023-10-13 19:26:47 +00:00