Rails Daily: Composite Keys and Documentation Updates
Three pull requests were merged addressing composite foreign key touch behavior, form helper documentation, and test cleanup. The most significant change fixes a silent bug where belongs_to associations with composite foreign keys failed to touch old records when relationships changed.
Duration: PT1M16S
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-05-25T10:01:11Z
- Audio duration: PT1M16S
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 Tuesday, May 25th, 2026.
romulostorel merged a fix for touch_record with composite foreign keys. This addresses a silent bug where belongs_to associations with composite foreign keys and touch: true would fail to update the old associated record's timestamp when the foreign key changed. The fix ensures both old and new records are properly…
cgunther merged documentation improvements for options_from_collection_for_select. The update clarifies that value_method and text_method arguments accept Proc objects in addition to string and symbol method names, filling a gap in the existing documentation.
yahonda merged a test cleanup fix that properly drops PostgreSQL databases created during bin setup tests. The change adds an ensure clause to remove app_development and app_test databases that were previously left behind after test runs.
What's next: The composite foreign key fix resolves a data integrity issue that could affect audit trails and caching strategies. The documentation update should help developers better utilize form helper flexibility.
That's your Rails update for today. Back tomorrow with more from the Rails repository.
Nearby episodes from Rails Daily
- Connection Pool Stability Fixes
- Security Fixes and Performance Improvements
- Bug Fixes and Documentation Updates
- PostgreSQL Schema Fixes and Test Cleanup
- Action Mailbox Security and PostgreSQL Fixes
- Weekly Recap - Error Handling & Developer Experience
- Error Messages and Developer Experience
- Concurrency and Threading Fixes