Rails Daily: Old Shortcuts Come Due

A cluster of merges from Ryuta Kamizono unwinds years-old performance shortcuts and internal assumptions in Active Record and schema handling, restoring correctness around attribute aliases, primary key writes, and MySQL's ALTER TABLE generation.

Duration: PT2M26S

Episode overview

This episode is a short developer briefing from Rails Daily.

It explains recent repository work in plain language.

  • Show: Rails Daily
  • Published: 2026-08-03T06:01:37Z
  • Audio duration: PT2M26S

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 August 3rd, and today's Rails activity has one clear thread: old performance shortcuts finally getting paid back with correctness fixes.

The headline is PR 58348, which restores alias attribute support in associations. Back in Rails 4.2, a performance fix swapped a safe attribute read for a faster internal path — and quietly broke alias attribute handling on foreign keys and primary keys ever since. Kamipo's fix closes a gap that's apparently been…

That same author is behind a second theme: primary key handling is getting stricter. PR 58347 deprecates writing to "id" when a custom primary key is set, mirroring an earlier deprecation on the read side from issue 49019. If your app relies on writing raw "id" as a stand-in for a custom primary key, expect a…

The third theme is schema generation cleanup. PR 58264 consolidates ALTER TABLE building into a single class, fixing a real bug where combining multiple schema operations could produce invalid SQL — previously safe only because nobody called it that way. PR 58265 follows up by moving MySQL's ALGORITHM and LOCK…

Smaller but practical: PR 58254 tightens Command Recorder's public interface ahead of a bigger migration…

W…

Nearby episodes from Rails Daily

  1. Ractor Freezing Cracks and a Wave of Coverage Fixes
  2. Anonymous Classes Break Things
  3. SQL Internals Get a Cleanup
  4. Ractor Safety and Insert Internals
  5. Ractor Safety and the Great Database Cleanup
  6. SQL Building Gets a Cleanup, Hot Paths Get Leaner
  7. Weekly Recap - Thread Safety, Cleanup, and Quiet Correctness Fixes
  8. Kamipo's Cleanup Sweep