Ruby on Rails: Scoped Association Fixes and Query Casting
Active Record dominated the weekend with merged fixes for scoped through-associations, aliased joins, and type casting. PostgreSQL improvements and a leaner Action Mailer round out the activity.
Duration: PT2M23S
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-11-16T14:14:17Z
- Audio duration: PT2M23S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
Good morning, it's Monday, November 16th, 2026, and here's your Ruby on Rails briefing.
The lead pattern is Active Record correctness — several merged fixes for associations silently returning the wrong records or the wrong types.
First, preloading for nested through associations. Two closely related fixes landed: PR 59797 and PR 59813. Both address a scoped has-many-through that goes through another through association losing its scope when a sibling association already loaded the records. The preloader was reusing records fetched without…
Second, more query edge cases. PR 59816 fixes type casting for grouped calculations and plucked columns the schema doesn't know, like a joined subquery or common table expression. A date plucked from a joined subquery now comes back as a date, not a string, because Rails falls back to the result column type. And PR…
Beyond that, Postgres and polish. Open proposals include PR 59815 to add an unlogged option to create table, instead of the current all-or-nothing setting, aimed at staging tables, caches and rate limiters — and PR 59819 to read Postgres index definitions from the catalogs instead of parsing text, after complex…
What's next: watch the…
Nearby episodes from Ruby on Rails
- Connection Pool Fixes and Upload Security
- Request Hardening and Data Correctness
- Active Record Cleanup and Connection Fixes
- Association Safety Fixes and Postgres Index Handling
- Weekly Recap - Through Associations, Query Safety and Performance
- Performance Sweep and Shared Connection Fix
- Active Record Query Fixes and Safer Scaling
- Security Hardening Sweep and Query Fixes