Rails Daily: Composite Key and Alias Fixes

Two pull requests merged today addressing ActiveRecord composite primary key support and ActiveModel attribute aliasing bugs. Additional optimizations included performance improvements for relation extending and Docker ignore updates.

Duration: PT1M40S

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-04-25T00:00:00Z
  • Audio duration: PT1M40S

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 Rails Daily for April 25th, 2026.

Two key bug fixes landed in the Rails codebase today. Jakob Nissen merged a fix for duplicate entries accumulating in alias_by_attribute_name. The issue occurred when ActiveModel's alias_attribute method was called multiple times on the same class, creating duplicate entries that caused redundant attribute method…

The second merge from contributor 55728 resolves an ArgumentError in find_signed for models using composite primary keys. While find_signed! worked correctly, the non-bang variant find_signed would fail on models with composite keys like shop_id and id combinations. The fix brings consistency across all find methods.

Bogdan Gusiev contributed an optimization to ActiveRecord Relation's extending method, adding an early return when no modules are provided. This change moves the empty-extensions guard directly into the extending method itself, benefiting all callers and simplifying the merger logic.

The same contributor also updated the Rails app template's dockerignore file, changing single asterisk patterns to double asterisks for better recursive directory exclusion while preserving necessary keep files in the tmp…

What'…

Nearby episodes from Rails Daily

  1. ActiveRecord Persistence Fix
  2. String Literals and Routing Fixes
  3. Weekly Recap - Database Support & Performance Optimizations
  4. ActiveRecord Query Optimizations and Frozen Strings
  5. PostgreSQL Version Bump and Documentation Updates
  6. Weekly Recap - Security & Performance Improvements
  7. Weekly Recap - Developer Experience & Security Enhancements
  8. HTTP Request Safety Methods Added