Rails61

Rails now serves files via proxy

Rails 6.1 has added support to ActiveStorage that serves files via proxying.

Rails 6.1 Adds if_exists to remove_index

Rails 6.1 adds the `if_exists` option in `remove_index` which when set to true won't raise an error if the index doesn't exist.

Rails 6.1 Adds Lazy Image Loading Config

Rails 6.1 adds a config option to set a default value for the loading attribute of all image_tags. This is in line with the latest official HTML standard.

Rails 6.1 Adds Check Constraints Support

Rails 6.1 adds check_constraint, add_check_constraint, and remove_check_constraint to migrations, replacing raw SQL for database constraints.

Rails 6.1 Role Switching and Sharding

Rails 6.1 has added support for switching connections for one database instead of all databases

Rails 6.1 Background Dependent Destruction

Rails 6.1 adds dependent: :destroy_async to delete associated records in background jobs.

Rails 6.1 Configurable Attribute Defaults

With Rails 6.1, we can set attribute's default value by keeping the type same

Rails support bulk insert/upsert on relation

Rails 6.1 has added support for bulk insert/upsert on relation to preserve scope values.

Rails 6.1 Adds Signed IDs to Active Record

Rails 6.1 added support for signed ids which are a tamper-proof way of identifying a bearer

Rails 6 perform_enqueued_jobs Without Block

With Rails 6, we can use ActiveJob::TestCase#perform_enqueued_jobs without a block to perform jobs in tests