Rails now serves files via proxyRails 6.1 has added support to ActiveStorage that serves files via proxying.
Rails 6.1 adds `if_exists` option in `remove_index` operationRails 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 config option to control image_tag loading attributeRails 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 query method associated to check for the association presenceRails 6.1 adds ActiveRecord::Relation#associated query method to check for the associated record presence
Rails 6.1 adds support for check constraints to database migrationsWith Rails adding support for check constraints to database migrations, check constraints can easily now be added and removed from tables with simple migration DSL. Earlier, the only way to add check constraints to tables was through raw SQL queries.
Rails 6.1 adds support for role switching and sharding in databaseRails 6.1 has added support for switching connections for one database instead of all databases
Rails 6.1 adds support for destroying dependent associations in the backgroundDestroying multiple layered hierarchy of associated objects can be time consuming and might result in a server timeout error. With Rails adding support for dependent associations to be deleted in the background, this issue is addressed.
Rails 6.1 allows attribute's default to be configured but keeping its typeWith Rails 6.1, we can set attribute's default value by keeping the type same
Rails support bulk insert/upsert on relationRails 6.1 has added support for bulk insert/upsert on relation to preserve scope values.
Rails 6.1 adds support for signed ids to Active RecordRails 6.1 added support for signed ids which are a tamper-proof way of identifying a bearer