Ruby on Rails: Ractor Safety Push and Composite Key Fixes
Rails is making significant progress toward Ractor safety with multiple merged changes to make lambdas, attributes, and logging shareable across isolated threads. Meanwhile, several composite primary key edge cases were resolved, improving reliability for applications using this newer ActiveRecord feature.
Duration: PT2M10S
Episode overview
This episode is a short developer briefing from Ruby on Rails.
It explains recent repository work in plain language.
- Show: Ruby on Rails
- Published: 2026-06-12T13:13:01Z
- Audio duration: PT2M10S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
Good morning. This is your Rails briefing for June 12th, 2026.
The big story today is Rails' coordinated push toward Ractor safety. Multiple teams merged changes that make core framework components shareable across Ractors, Ruby's actor-based concurrency model.
Three key areas saw updates. Pull request 57682 made readonly attributes Ractor-safe by freezing them by default rather than doing bookkeeping later. PR 57681 made various lambdas in routing constants shareable using a shareability shim for Ruby 4.0 and later. And PR 57626 introduced a new mechanism for applications…
The second major theme involves fixing edge cases with composite primary keys and related ActiveRecord features. PR 57638 refactored the composite primary key implementation using polymorphism, touching core areas like belongs-to and autosave associations. PR 57679 fixed increment and decrement methods when explicit…
Several smaller but important reliability fixes also landed. Time and DateTime advance methods no longer mutate the caller's options hash, fixing a particularly nasty bug that could cause frozen error exceptions. Memory store cleanup now works correctly with non-default serializers, and XML parsing…
The…
Nearby episodes from Ruby on Rails
- Active Job Fixes and Documentation Overhaul
- Weekly Recap - Stability and Developer Experience
- Edge Case and Stability Fixes
- ActionCable Reliability and Testing Fixes
- Composite Primary Key Fixes and Safety Improvements
- Number Helper Fixes and Threading Improvements
- Ractor Safety and Edge Case Fixes
- Edge Case Bug Fixes