Ruby on Rails: PostgreSQL Schema Improvements and Test Cleanup

Four pull requests were merged addressing PostgreSQL schema handling issues and test database cleanup. Key fixes include proper index opclass preservation and enum type dumping with fully qualified names.

Duration: PT1M46S

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-05-26T10:01:30Z
  • Audio duration: PT1M46S

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 your Rails development update for May 26th, 2026.

Four significant pull requests were merged over the weekend, with a focus on PostgreSQL improvements and test infrastructure cleanup.

Yahonda merged two important testing infrastructure fixes. The first addresses test database cleanup by making `use_postgresql` and `use_mysql2` helpers automatically drop per-process databases created during testing. This prevents leftover databases that aren't cleaned up by standard Rails commands. The second fix…

On the PostgreSQL front, nicolasva merged a fix for schema dumping that was silently dropping index opclasses when using persistent schemas. The issue occurred when extensions like pg_trgm were installed in separate schemas, causing schema-qualified opclass names to be dropped from schema.rb files due to regex…

Fatkodima also merged improvements to PostgreSQL enum handling, ensuring enum types are dumped with fully qualified names in schema files. This addresses consistency issues when working with enums across different database schemas.

The merged changes span 213 lines added and 107 lines removed across 11 files, primarily in ActiveRecord's PostgreSQL adapters and…

Nearby episodes from Ruby on Rails

  1. Weekly Recap - PostgreSQL Fixes & Framework Reliability
  2. Database Connection Pool Deadlock Fix
  3. Security Hardening and Performance Fixes
  4. Error Handling and Documentation Updates
  5. Composite Key Fixes and Documentation Updates
  6. Action Mailbox Security Hardening
  7. Weekly Recap - Error Handling & Developer Experience
  8. Error Messages and Testing Improvements