Cleanup loaded features and constants after dependency tests.
Fix that a collection proxy could be cached before the save of the owner, resulting in an invalid proxy lacking the owner’s id.

Absent this fix calls like: owner.association.update_all to behave unexpectedly because they try to act on association objects where
owner_id is null.

more evidence here: https://gist.github.com/Empact/5865555
```
Active Record 3.2.13
-- create_table(:firms, {:force=>true})
   -> 0.1371s
-- create_table(:clients, {:force=>true})
   -> 0.0005s
1 clients. 1 expected.
1 clients updated. 1 expected.
```

```
Active Record 4.0.0
-- create_table(:firms, {:force=>true})
   -> 0.1606s
-- create_table(:clients, {:force=>true})
   -> 0.0004s
1 clients. 1 expected.
0 clients updated. 1 expected.
```
Allow authentication header to not have to specify 'token=' key.

Fixes: https://github.com/rails/rails/issues/17108.
copy reflection_scopes’s unscoped value when building scope for preloading, fixes #11036
- Remove unused duplicated method `add_column_position` from AbstractMysqlAdapter
Add a section about job testing [ci skip]

* Cover lower level job testing (assertions about the execution of the
  job itself).
* Add a table with the custom assertions provided by Active Job's
  `TestHelper` module.
* Add an example testing job queuing inside a model
`secret_token` is now saved in `Rails.application.secrets.secret_token`

- `secrets.secret_token` is now used in all places `config.secret_token` was
  - `secrets.secret_token`, when not present in `config/secrets.yml`,
    now falls back to the value of `config.secret_token`
  - when `secrets.secret_token` is set, it over-writes
    `config.secret_token` so they are the same (for backwards-compatibility)
  - Update docs to reference app.secrets in all places
    - Remove references to `config.secret_token`, `config.secret_key_base`
- Warn that missing secret_key_base is deprecated
- Add tests for secret_token, key_generator, and message_verifier
  - the legacy key generator is used with the message verifier when
    secrets.secret_key_base is blank and secret_token is set
  - app.key_generator raises when neither secrets.secret_key_base nor
    secret_token are set
  - app.env_config    raises when neither secrets.secret_key_base nor
    secret_token are set
- Add changelog

Run focused tests via
ruby -w -Itest test/application/configuration_test.rb -n '/secret_|key_/'
Delegate comparison operator to value
Move DebugExceptions#traces_from_wrapper to ExceptionWrapper

ActionDispatch::ExceptionWrapper seems to be the more natural place for
this method to live in.
Correct test description for large integer test
Merge pull request #17480 from gsamokovarov/exception-wrapper-traces

Move DebugExceptions#traces_from_wrapper to ExceptionWrapper
Added SchemaDumper support for tables with jsonb columns.
Merge pull request #17443 from tomeara/added_jsonb_to_postgres_database_types

Added SchemaDumper support for tables with jsonb columns
Mention that articles resource should be added by user in getting started guide

[ci skip]
Merge pull request #17508 from prathamesh-sonpatki/mention-adding-resources-to-routes

Mention that articles resource should be added by user in getting started guide

Fixes #17507 [ci skip]
add a test for #17106
activerecord: rake db:create shows underlying error message.
add lib to $LOAD_PATH on application inhertence. fixes #17106
Merge branch '17106'

* 17106:
  add lib to $LOAD_PATH on application inhertence. fixes #17106
  add a test for #17106
[ci skip] Fixup spelling and grammar in 4.2 guides

Capitalize CSS, SQL

Change spelling of favour to favor - updated for consistency,
the rest of the document uses "favor".

Grammar / spelling pass