RepoJournal
Rails

@rails

Ruby on Rails - Shopify, Basecamp, GitHub all run on it

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

One email a day. Unsubscribe in one click.

Pick a date

Topics: Ruby Full archive →

The Wire · Showcase

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

By RepoJournal · Filed · About Rails

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.

One email a day. Unsubscribe in one click.

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.

More from @rails

Daily updates, in your inbox

Follow Rails

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

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?

We use privacy-friendly analytics (Google Analytics, IP-anonymized) to see which pages help readers. No ads, and we never sell your data. See our Privacy Policy.