Destroying associations asynchronously, interval datatype and more

Posted by morgoth85, October 3, 2020 @ 12:00 am in News

Hi, Wojtek from this side. We are coming back with newsletter! Here are the changes in Ruby on Rails codebase from the last week.

Destroy associations via background job

Destroying associated records can now be done in background job by setting dependent: :destroy_async option.

Support for PostgreSQL interval datatype

Add support for PostgreSQL interval data type with conversion to ActiveSupport::Duration when loading records from database and serialization to ISO 8601 formatted duration string on save.

Per environment Active Storage config files

Active Storage configuration files for specific environment like config/storage/production.yml will take precedence over config/storage.yml.
It should ease complex configuration scenarios which may arise when configuring services per attachment.

Base class for Active Storage, Action Text and Action Mailbox

Permit applications to hack in custom databases for Active Storage, Action Text and Action Mailbox models by extracting base Active Record class.

17 people contributed to Rails since the last week. Check out the detailed list of all changes. Until next week!