Hi, it’s Greg, bringing you this week’s changes in the Rails codebase.
Rails World tickets waiting list
Many of you asked if there is a waiting list where you can be informed when Rails World tickets go on sale, and the Rails Foundation listened. Sign up here to be alerted when we release Early Bird tickets: https://ti.to/rails-world/rails-world-2023))
Use configured pk type in Action Mailbox migration
This pull request adds the missing support to Action Mailbox migration generators to handle the primary key configuration of the application.
Support :message_pack as a cache serializer format
This commit adds support for :message_pack
as an option for config.active_support.cache_format_version
.
This new format can reduce cache entry sizes and improve performance but requires the msgpack gem.
Improve cache performance for bare string values
A new 7.1
cache format and the aforementioned :message_pack
cache format both got a performance optimization for bare string values(such as view fragments).
Allow passing nil to rewhere
Active Record’s rewhere
will accept nil
for the conditions parameter, and when calling it with nil
, it will remove all conditions. This inlines the behavior with reorder
.
Update migration examples to showcase database-agnostic raw SQL execution
This pull request updates the raw SQL example in the migration code examples of the Rails Guides.
The previous example would error out in SQLite due to SQLite not supporting adding constraints in the ALTER TABLE
command.
You can view the whole list of changes here.
We had 16 contributors to the Rails codebase this past week!
Until next time!
Subscribe to get these updates mailed to you.