127 wires and counting

$ follow Rails

Keep up with Rails in about 3 minutes: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

fair warning: these emails are deeply technical. diffs, version numbers, CVEs, benchmark deltas. if that's not your idea of a good read, this isn't your newsletter.

Folds into your digest — weekly by default, monthly if you prefer. Unsubscribe in one click.

$ status

wire 2026-05-20
stories 68

© 2026 RepoJournal Home Showcase Explore How it works Privacy

$ the-wire · showcase

POSTGRESQL 18.4 FOREIGN KEY SUPPORT LANDS IN RAILS

By RepoJournal · Filed · About Rails · Composed from the cited sources · methodology

Rails just shipped native support for PostgreSQL 18.4's NOT ENFORCED foreign keys, letting table owners toggle constraints without superuser privileges for the first time.

The Rails core team merged two complementary features that fundamentally change how you handle foreign key constraints on modern PostgreSQL. First, disable_referential_integrity now uses NOT ENFORCED/ENFORCED syntax on PostgreSQL 18.4+ instead of requiring DISABLE TRIGGER ALL superuser access [1]. Second, a new enforced: option lets you declare foreign keys as NOT ENFORCED directly in migrations, solving the silent data corruption problem where switching back to ENFORCED wouldn't re-validate existing rows [2]. Together, these changes eliminate the superuser requirement that has plagued Rails deployments for years. On the tooling side, Rails also added exclusion_constraint_exists? and unique_constraint_exists? helpers to round out constraint introspection [3]. In other updates, the devcontainer now supports Ruby 4.0.5 [4], and rails/marcel improved MIME type detection with tika.xml regex support while cleaning up trailing spaces in type definitions [5].

Quick answers

What shipped in Rails on May 20, 2026?
Rails just shipped native support for PostgreSQL 18.4's NOT ENFORCED foreign keys, letting table owners toggle constraints without superuser privileges for the first time. In total, 45 commits, 21 pull requests, and 2 releases landed.
Who contributed to Rails on May 20, 2026?
2 developers shipped this update, including yahonda and alexanderadam.
What were the notable Rails updates?
Use NOT ENFORCED in disable_referential_integrity on PostgreSQL 18.4+, Add `enforced:` option for foreign keys on PostgreSQL 18.4+, and Add `exclusion_constraint_exists?` and `unique_constraint_exists?` helpers.