159 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-07-04
stories 45

© 2026 RepoJournal Home Showcase How it works Privacy

$ the-wire · showcase

RAILS SHIPS REVERSIBLE FOREIGN KEY MIGRATIONS, PRODUCT REVIEWS TUTORIAL GOES LIVE

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

1 person shipped this

The framework just made database rollbacks safer while shipping a complete e-commerce guide that teaches real-world patterns.

Rails merged a critical fix for migration reversibility [1] that makes `remove_foreign_key(if_exists: true)` properly invertible. This closes a longstanding gap where developers could drop constraints but couldn't reliably undo it. On the documentation front, the new Product Reviews Tutorial [2] lands in the guides, completing the e-commerce store series with a full-featured implementation: star ratings, image uploads, automatic product rating updates, and admin management tools. The tutorial demonstrates radio buttons for ratings, filtered views by score, and percentage bar graphs. Shopify also shipped a fix for polymorphic belongs_to relationships with sharded primary keys [3], addressing a pain point for teams running distributed databases. The website team updated the main tutorial page [4] to link the new product reviews guide and removed the 'Coming soon' badge.

Action items

References

  1. [1] Merge pull request #57972 from 55728/fix-invert-remove-foreign-key-if-exists rails/rails ↗
  2. [2] [RF-DOCS][ci-skip] Add Product Reviews Tutorial ↗ rails/rails
  3. [3] Merge pull request #57959 from Shopify/fix-polymorphic-belongs-to-sharded-primary-key rails/rails ↗
  4. [4] Update tutorial.html (#686) ↗ rails/website

Quick answers

What shipped in Rails on July 4, 2026?
The framework just made database rollbacks safer while shipping a complete e-commerce guide that teaches real-world patterns. In total, 29 commits and 16 pull requests landed.
Who contributed to Rails on July 4, 2026?
1 developer shipped this update, including excid3.
What were the notable Rails updates?
Merge pull request #57972 from 55728/fix-invert-remove-foreign-key-if-exists, [RF-DOCS][ci-skip] Add Product Reviews Tutorial, and Merge pull request #57959 from Shopify/fix-polymorphic-belongs-to-sharded-primary-key.