This week in Rails
Jul 2 2021
Perform destroy_all in batches and a lot more features
Hello. News about latest changes in Rails delivered to you by
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
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
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
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
contributed to Rails since last time. All the changes can be checked
Until next week!
Rails 7 alpha released
Bye-bye Byebug, Hello jsbundling and cssbundling!
Remove default reliance on Sass and more!
Good-bye classic mode, --skip-puma, --skip-gemfile.. hello weekday_options_for_select!
ESM importmap and Marginalia
Active Record goodies and more!
Favicons, InvalidAuthenticityToken message gains, Journey optimizations and more!
Active record improvements and much more
Performance and parallel testing improvements and more!
Rails 6.1.4 and plenty of developer UX goodies