Destroying associations asynchronously, interval datatype and more

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!

This Week in Rails · 30 N Racine #200 · Chicago IL 60607 · USA
Unsubscribe | View in browser