Don't load test env by default
[Active Record] Renamed private methods create_record and update_record

 This is to ensure that they are not accidentally called by the app code.
 They are renamed to _create_record and _update_record respectively.
 Closes #11645
Pass a base relation to build_default_scope when joining

This allows the default scope to be built using the current table alias.
Resolves #12770
Updating select helper doc [ci skip]
Fix misspelling in references docs
Update documentation on group method to indicate it takes an array

The group method also takes an array, however this isn't immediately
clear by reading the source since it delegates this method. If you
trace it back to the AREL building you can see that it does support
an array.

Shoutout to @betovelandia for pointing this out.
Mention required glob param name in match docs for mapper

THe match documentation doesn't mention any requirement of the
parameter name requirement for matches. However, including a
bare glob character without a variable assignment causes a
parse error.
Append link to bad code to backtrace when exception is SyntaxError
Clarify environment_name for logs

[ci skip]
Merge pull request #14154 from al2o3cr/issue12770

Pass a base relation to build_default_scope when joining
PostgreSQL, test cases to lock the current column types.
Fix warning for overshadowing XML variable
Merge pull request #14515 from mzahir/fix_xml_warning

Fix warning for overshadowing XML variable
HashWithIndifferentAccess better respects #to_hash

In particular, `.new`, `#update`, `#merge`, `#replace` all accept
objects which respond to `#to_hash`, even if those objects are not
Hashes directly.
PostgreSQL, test-cases to lock down column default values.
PostgreSQL, use `PostgreSQLColumn` in PG specific tests.
Merge pull request #12778 from etehtsea/rake-default-fix

Don't load test env by default.

Closes #13241
Add CHANGELOG entry for #12778 [ci skip]
Merge pull request #12550 from Peeja/hash-wia-update-respects-to-hash

HashWithIndifferentAccess#update respects #to_hash
Replace trivial regexp with string or index, twice as fast