Merge pull request #10566 from neerajdotname/10509d

do not load all child records for inverse case
Fixed ActiveModel::Model's inclusion chain
Merge pull request #11002 from fredwu/master-activemodel-inclusion-chain-fix

Fixed ActiveModel::Model's inclusion chain
Remove duplicate letter 'a'. [ci skip]
Merge pull request #11007 from ugisozols/remove_duplicate_letter

Remove duplicate letter 'a'. [ci skip]
better documentation for `AS::Testing::Declarative#test`. [ci skip]
log the sql that is actually sent to the database

If I have a query that produces sql
`WHERE "users"."name" = 'a         b'` then in the log all the
whitespace is being squeezed. So the sql that is printed in the
log is `WHERE "users"."name" = 'a b'`.

This can be confusing. This commit fixes it by ensuring that
whitespace is not squeezed.

fixes #10982
Merge pull request #10991 from neerajdotname/10982

log the sql that is actually sent to the database
add documentation for `ActiveSupport::Testing::SetupAndTeardown`.
Revert "Merge pull request #10566 from neerajdotname/10509d"

This reverts commit 2b817a5e89ac0e7aeb894a40ae7151a0cf3cef16, reversing
changes made to 353a398bee68c5ea99d76ac7601de0a5fef6f4a5.

Conflicts:
	activerecord/CHANGELOG.md

Reason: the build broke
Fixes AciveModel::Model with no ancestors, fixes #11004

Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
Handle single quotes in PostgreSQL default column values

PostgreSQL escapes single quotes by using an additional single quote.
When Rails queries the column information, PostgreSQL returns the
default values with the escaped single quotes.

#extract_value_from_default now converts these to one single quote each.

Fixes #10881.
Merge pull request #10884 from dmarkow/pg_fix_default_quotes

Handle single quotes in PostgreSQL default column values
add forgotten CHANGELOG entry for #10884.
Fix name of nested attributes option include_id

The option to disable including a hidden ID field on a `fields_for` nested association was incorrectly documented as `hidden_field_id` instead of `include_id`
Merge pull request #11017 from stormsilver/patch-1

Fix name of nested attributes option include_id
ActiveModel::Model inclusion chain backward compatibility
`inspect` for AR model classes does not initiate a new connection.
fix "will be ran" and "has began" typos in configuration guide
Merge pull request #11024 from pdorrell/master

Fix 3 typos in Configuration guide