Fix migrations with enable_extension

When using ActiveRecord::Base.table_name_prefix and/or
table_name_suffix, extension names got the same treatment as table names
when running migrations. This led to migrations that tried to call, for
example, enable_extension("prefix_hstore") on the connection.
Reorganize ActiveRecord tasks [Arun Agrawal & Abd ar-Rahman Hamidi]
PostgreSQL timestamps are always datetimes

The current behavior is that they are treated as `datetime` normally,
but if they are part of an array, they are treated as `timestamp`. The
only place that seems to be impacted by this is schema dumping, which
shouldn't matter since `t.datetime` and `t.timestamp` are equivalent in
the `PostgreSQL` adapter, anyway.
Use destructured arguments when looping through pairs

Minor refactoring of looping behavior for aggregation
Default config.assets.digests to true in development
Make `:index` in migrations work with all column types
early return on delete and destroy methods

When delete or destroy is called on all records nothing
is deleted or destroyed. Intead of running through the code and still
not deleteing anything, we should early return
Feature detect based on Ruby version.

I didn't want to do this, FNM_EXTGLOB is defined on 2.1.x, but Dir.glob
returns the wrong value on Ruby less than 2.2.0.  Checking for a
case-insensitive FS seems too hard, so just check Ruby version  Checking
for a case-insensitive FS seems too hard, so just check Ruby version.
Merge pull request #15156 from sgrif/sg-postgres-timestamps

PostgreSQL timestamps should always be datetimes
pg guide, move introductory sentences into main content. [ci skip]

This is a reaction to https://github.com/rails/rails/commit/7ca75f3789e316b6f3dc1f8000ec4f85c8ba32ea#commitcomment-6303828
Merge pull request #14962 from arunagw/aa-fix-rake-activerecord

Reorganize ActiveRecord tasks [Arun Agrawal & Abd ar-Rahman Hamidi]
pg, add missing nodocs for extracted modules.
pg, re-introduce `PostgreSQL::Utils` to unify schema/table extraction.

Partial revert of c0bfc3f412834ffe8327a15ae3a46602cc28e425
Merge pull request #15160 from sgrif/sg-destructured-each

Use destructured arguments when looping through pairs
Merge pull request #14126 from schuetzm/index_option_for_column

Make `:index` in migrations work with all column types
Merge pull request #15168 from eileencodes/return-early-on-delete-and-destroy-methods

Return early on delete and destroy methods
test, inline `DeveloperWithAggregate`, which is used by a single test.
Delegate `Column#type` to the injected type object

The decision to wrap type registrations in a proc was made for two
reasons.

1. Some cases need to make an additional decision based on the type
  (e.g. a `Decimal` with a 0 scale)
2. Aliased types are automatically updated if they type they point to is
  updated later. If a user or another adapter decides to change the
  object used for `decimal` columns, `numeric`, and `number` will
  automatically point to the new type, without having to track what
  types are aliased explicitly.

Everything else here should be pretty straightforward. PostgreSQL ranges
had to change slightly, since the `simplified_type` method is gone.
Merge pull request #15158 from sgrif/sg-delegate-type

Delegate `Column#type` to the injected type object
Merge pull request #10798 from jcxplorer/fix-enable_extension-with-table_name_prefix

Fix migrations that use enable_extension with table_name_prefix/suffix

Conflicts:
	activerecord/CHANGELOG.md
	activerecord/lib/active_record/migration.rb