Ruby on Rails: Association Scopes Get an Honesty Check
Ryuta Kamizono led a cluster of Active Record fixes making association queries — eager loading, preloading, and where clauses — actually respect the limits, ordering, and distinctness developers already specify, alongside a batch of cleanup deprecations for outdated compatibility code.
Duration: PT2M21S
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-09-18T13:15:49Z
- Audio duration: PT2M21S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
It's September 18th, and today's Rails activity centers on one theme: association queries quietly returning the wrong data.
Three PRs from Kamipo tackle variations of the same bug class. PR 58814 and PR 58815 fix eager loading and preloading so that a scoped association with a limit and offset — like grabbing an author's top three posts by score — actually applies that limit per record, using a lateral subquery on PostgreSQL and MySQL 8.…
The same author also fixed `where dot associated`, which was returning duplicate records when joined against a collection association — PR 58811 — and `where dot missing`, which mismatched anti-join logic when the association was reached through another table, in PR 58810. Four different query paths, one underlying…
A second theme is deprecation cleanup. Kamipo also retired `supports_datetime_with_precision`, a guard that's returned true unconditionally since MySQL 5.5 support was dropped, and deprecated the outdated `Callbacks CALLBACKS` constant, which was missing several commit-related callbacks added over the years. Both…
Elsewhere, drsharp fixed strict loading incorrectly raising just from attaching a file to a new record in PR 58804, and…
What's…
Nearby episodes from Ruby on Rails
- Quietly Fixing Data Correctness Bugs
- Performance Cleanup Across the Stack
- Quiet Correctness Fixes and Ractor Readiness
- Locking Down the Edges
- Weekly Recap - Ractor Safety and Boot Reliability
- Boot Failures and a Stored XSS Fix
- Ractors, Vips, and the Performance Push
- Getting Serious About Ractor Safety