This week in Rails
Past issues
Jun 27
Jul 10
Jul 2 2021
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!
Previous Issues
Sep 27
Autumn is here, and so is Rails 7 Alpha 2! 🍂
Sep 17
Rails 7 alpha released
Sep 11
Bye-bye Byebug, Hello jsbundling and cssbundling!
Aug 28
Remove default reliance on Sass and more!
Aug 21
Good-bye classic mode, --skip-puma, --skip-gemfile.. hello weekday_options_for_select!
Aug 13
ESM importmap and Marginalia
Aug 8
Active Record goodies and more!
Jul 31
Favicons, InvalidAuthenticityToken message gains, Journey optimizations and more!
Jul 23
Active record improvements and much more
Jul 19
Performance and parallel testing improvements and more!
Load More