rails/activerecord/test/support
Jean Boussier 7263da542b Deprecate ConnectionPool#connection
Replaced by `#lease_connection` to better reflect what it does.

`ActiveRecord::Base#connection` is deprecated in the same way
but without a removal timeline nor a deprecation warning.

Inside the Active Record test suite, we do remove `Base.connection`
to ensure it's not used internally.

Some callsites have been converted to use `with_connection`,
some other have been more simply migrated to `lease_connection`
and will serve as a list of callsites to convert for
https://github.com/rails/rails/pull/50793
2024-03-01 14:32:55 +01:00
..
marshal_compatibility_fixtures Remove an unused fixture 2024-01-11 09:27:30 +01:00
stubs Change safe guard to check for each_pair instead of stringify_keys 2020-02-07 11:36:35 -05:00
yaml_compatibility_fixtures Change ActiveRecord::Coders::YAMLColumn default to safe_load 2022-07-12 09:26:46 -07:00
adapter_helper.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
async_helper.rb fix remaining asserts that should be assert_equal 2022-09-09 19:22:21 -04:00
config.rb Refactor lookup of connection adapters 2023-11-16 09:07:44 +01:00
connection_helper.rb Deprecate #remove_connection in favor of #remove_connection_pool 2020-01-21 16:49:20 -05:00
connection.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
ddl_helper.rb [Fix #47203]Fix state leakage between tests 2023-02-10 15:26:32 +00:00
fake_adapter.rb Refactor lookup of connection adapters 2023-11-16 09:07:44 +01:00
load_schema_helper.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
schema_dumping_helper.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
tools.rb Don't run the adapter tests when a test selection is made 2023-02-13 21:25:01 +00:00