Review the CHANGELOGs [ci skip]
Release 4.0.1.rc1
Escape the parentheses in the default function regexp

This is causing every default value in PostreSQL database to being
handled as default function.

Fixes #12581
Merge pull request #12588 from jetthoughts/12586_subquery_with_unprepared_sql

Inline bind values for sub-queries generated for Relation in where

Conflicts:
	activerecord/CHANGELOG.md

Conflicts:
	activerecord/CHANGELOG.md
	activerecord/test/cases/sanitize_test.rb

Fixes #12586
Release 4.0.1.rc2
Fix order dependent tests
Merge pull request #12612 from amatsuda/amo_validates_inclusion_of_time_range_error

Let validates_inclusion_of accept Time and DateTime ranges
Preparing for 4.0.1.rc3 release
Fix the install task
Merge pull request #12619 from Veraticus/fix_utils_normalize_path

Correct error in Utils.normalize_path that changed paths improperly
Allow any version of BCrypt
Merge pull request #12635 from mperham/4-0-stable

Allow any version of BCrypt
Add CHANGELOG entry for #12635 [ci skip]

Conflicts:
	activerecord/CHANGELOG.md
define attribute methods in a thread safe manner
Merge pull request #12632 from al2o3cr/fix_race_for_attribute_methods

Always check to see if methods exist after calling define_attribute_methods
remove private attribute reader
lock around mutating the generated methods module
Merge pull request #8491 from igagnidz/master

Issue #8442
Improve the test code for #8422

* Remove unneeded comments.
* Use key? instead of keys.include?.
Merge pull request #12636 from kongregate/dont_rescue_Exceptions

Avoid unnecessary catching of Exception instead of StandardError (conver...