1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test
John Crepezzi 8d5a4ff6a7 Remove ConnectionAdapters::Resolver in favor of DatabaseConfigurations
We have these two objects, `ConnectionAdapters::Resolver` and
`DatabaseConfiguratons` that implement a lot of the same logic. One of
them is used for configurations defined in `config/database.yml` and the
other is used when passing raw configurations `String` or `Hash` objects
into methods like `establish_connection`.

Over time these two have diverged a bit. In the interest of less code
complexity, and more consistency for users this commit brings them back
together.

* Remove `Resolver` altogether and replace its primary method with
  `DatabaseConfigurations#resolve`.

* Move `resolve_pool_config` over to the `ConnectionPool` alongside the code
  that uses it.
2019-11-12 22:30:31 -08:00
..
active_record/connection_adapters Deduplicate various Active Record schema cache structures 2019-06-03 13:31:42 +02:00
assets
cases Remove ConnectionAdapters::Resolver in favor of DatabaseConfigurations 2019-11-12 22:30:31 -08:00
fixtures Fix docs to replace http with https in activerecord [ci skip] 2019-08-26 22:34:33 +09:00
migrations
models :polymorphic, :as, and :foreign_type are valid for polymorphic association 2019-11-10 10:54:58 +09:00
schema Additionally order by primary key if implicit_order_column is not uniq 2019-11-03 16:01:18 +01:00
support Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
config.example.yml
config.rb