Review the CHANGELOGs [ci skip]
Release 4.0.1.rc1
Merge pull request #12560 from sue445/modify_find_lock_sample_code

avoid deprecation warning in sample code [ci skip]
Merge pull request #12565 from stormsilver/unscope_fixes

Allow unscope to work with `where.not`
Conflicts:
	activerecord/CHANGELOG.md
Merge pull request #12567 from GoBoundless/fix_postgres_structure_import

Fix loading a sql structure file on postgres when the file's path has whitespace in it
Conflicts:

	activerecord/CHANGELOG.md
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
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
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 #11839 from chocoby/fix/convert_port_number

Convert Fixnum into String the port number like `db:structure:dump` task in MySQL.
Conflicts:
	activerecord/CHANGELOG.md
Fix order dependent tests
Try arel master
Merge pull request #11574 from jetthoughts/11552_rescue_on_invalid_inet_assign

Fix assign ip address with invalid values raise exception
Conflicts:
	activerecord/CHANGELOG.md
Merge pull request #12612 from amatsuda/amo_validates_inclusion_of_time_range_error

Let validates_inclusion_of accept Time and DateTime ranges
Merge pull request #12612 from amatsuda/amo_validates_inclusion_of_time_range_error

Let validates_inclusion_of accept Time and DateTime ranges
Merge pull request #12617 from skv-headless/master

[ci skip] second parameter of asset-url is deprecated
Conflicts:
	guides/source/asset_pipeline.md
Preparing for 4.0.1.rc3 release
Fix the install task