Rails-6-1

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 has added support in Action Cable to unsubscribe from specific stream

Rails adds ActionCable::Channel#stop_stream_from and ActionCable::Channel#stop_stream_for methods to allow user to unsubscribe from specific stream

Rails has added strict loading mode to prevent lazy loading

Rails has added strict loading mode to prevent lazy loading of associations and help avoid N + 1 queries

Rails adds config rake_eager_load

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

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 adds support for if_exists/if_not_exists on remove_column/add_column in migrations

Rails adds support for if_exists/if_not_exists on remove_column/add_column in migrations to silently ignore migrations

Rails 6.1 adds support for multiple storage services to Active Storage

Rails 6.1 adds support to configure storage services for individual attachment.

Rails 6.1 adds query method missing to find orphan records

Rails 6.1 adds ActiveRecord::Relation#missing query method to find orphan records

Rails 6 adds Purpose Metadata to Cookies

Rails 6 adds purpose metadata to cookies to prevent attackers from copying the value of one cookie and use it for another.

Rails 6 removes Action View helper image_alt

Rails 6 removes the deprecated `image_alt` helper from Action View.