Rails-6

Rails ActiveRecord::Relation#pick now uses already loaded results

Rails ActiveRecord::Relation#pick now uses already loaded results instead of making a new query everytime.

Rails [attribute_name]_previously_changed? accepts :from and :to arguments

Rails Active Model Dirty method [attribute_name]_previously_changed? now accepts :from and :to arguments just like [attribute_name]_changed?

Rails - Allows to specify schema cache path in database configuration file

Rails now exposes a new configuration for specifying the location of the schema cache file. This can be done in database.yml using schema_cache_path key.

Eager loading Active Storage models to avoid N+1 issues

Removing N+1 queries when we access the Active Storage attachments associated with an ActiveRecord model.

Ruby Hash#transform_keys now accepts a hash that maps existing keys to new keys

Ruby Hash#transform_keys now also accepts a hash that maps the existing hash keys to new keys

Rails adds config rake_eager_load

Rails has added the option to eager load all the registered name spaces in rake tasks.

Rails has added support for automatic database connection switching from primary to the replica

Rails has added support for automatic database connection switching from primary to the replica

Rails 6.1 adds at option to perform_enqueued_jobs test helper

Rails 6.1 has added at option to perform_enqueued_jobs test helper to run only jobs which are scheduled at or before the passed in time

Rails introduces disallowed deprecations in ActiveSupport

Rails has added support to configure disallowed deprecations.

Rails has added a benchmark generator

Rails has added a benchmark generator for scripts to benchmark Rails application.