Fix that #pluck wasn't rescuing ThrowResult, meaning it would blow up when failing to construct_limited_ids_condition.
Add coverage for the fact that pluck without an argument returns all the table's columns.
No point in memoizing a simple literal string.
Make NullRelation a bit more like a real relation by returning 0 for #calculate(:count)
Rather than raising ThrowResult when construct_limited_ids_conditions comes up empty, set the relation to NullRelation and rely on its results.

This will help avoid errors like 2fcafee250ee2, because in most cases NullRelation will do the right thing. Minor bonus is avoiding the use of exceptions for flow control.
Fixes #10432 add_column not creating array columns in PostgreSQL

When then PostgreSQL visitor was [added](https://github.com/rails/rails/commit/6b7fdf3bf3675a14eae74acc5241089308153a34)
`add_column` was no longer receiving the column options directly. This
caused the options to be lost along the way.
Removing use of subclassed application constant and instead using the
more agnostic Rails.application syntax. This means tests will be more
portable, and won't rely on the existence of a particular subclass.
Merge pull request #10832 from wangjohn/removing_use_of_application_constant

Removing use of subclassed application constant and replacing with Rails.application
Dry-up ActionDispatch::Routing autoloads
Refactor ActionDispatch::Http::Parameters#normalize_encode_params
Merge pull request #10838 from gsamokovarov/routing-autoload_under

DRY-up ActionDispatch::Routing autoloads
Merge pull request #10839 from gsamokovarov/clean-normalize_encoded_paths

Refactor ActionDispatch::Http::Parameters#normalize_encode_params
Fix mismatching variable names when using an underscore

The ERBTracker template digest helper class was using a regex to match
render calls and it was incorrectly not matching against variables with
underscores in the name. This caused it to use the wrong regex match data
to populate the template dependency. Because underscore is a valid
character for a variable, this fixes the ERBTracker to match it properly.
Merge pull request #10841 from latortuga/fix-underscore-dependency-tracking

Fix mismatching variable names when using an underscore
adding a test for #10830

Conflicts:
	activerecord/test/cases/adapters/postgresql/bytea_test.rb
the typecast value should be passed to the serializer.  fixes #10830
Fix #10789. Now at last ::Logger doesn't support #silence method .
only check pending migrations if there are new files
Merge pull request #10482 from scudco/10432-fix-add-column-with-array

Fixes #10432 add_column not creating array columns in PostgreSQL
Fix Build. Changing constructor.