Perform destroy_all in batches and a lot more features

Hello. News about latest changes in Rails delivered to you by Wojtek.

Active Record destroy_all performs in batches

By default it will load records in batches of 100 and allow to specify the custom batch size.

Add support for ordinal date values

A valid ordinal value will be converted to an instance of TimeWithZone.
In example “21087” value will be parsed to 28-03-2021 date.

Add existence check to foregin key migrations

It is now possible to use if_exists / if_not_exist on remove_foreign_key / add_foreign_key in database migrations.

Add possibility to configure Active Storage for Action Mailbox

It is now possible to configure Active Storage service for storing email raw source via config.action_mailbox.storage_service.

Support strict_loading_by_default in Active Storage

Before the patch, Active Storage representation objects did not play nice with strict loading configuration.

Replace uglifier with terser

Terser is more up to date with modern javascript features, and the uglifier gem repository recommends using it for minifying ES6+ code.

32 people contributed to Rails since last time. All the changes can be checked here. Until next week!

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