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 FIXES TIMESTAMP PRECISION AND MIGRATION REVERSIBILITY IN OVERNIGHT PUSH

By RepoJournal · Filed · About Rails

PostgreSQL timestamp columns now report their actual microsecond precision to Active Record, fixing a long-standing type casting inconsistency that could silently corrupt datetime handling across your stack.

The Rails team shipped three critical fixes that tighten database schema handling. First, Rails now correctly reports PostgreSQL's default timestamp/time precision as 6 (microseconds) [1], ensuring type casting normalizes timestamps consistently with what's actually stored. This matters because bare timestamp columns without explicit precision were being misreported, causing data integrity issues on read. Second, the migration system now properly handles reversibility for `drop_virtual_table` [2] and `remove_check_constraint` with the `if_exists` flag [3], so your down migrations won't fail on already-missing objects. In parallel, the docs got fixed: month_field and week_field examples were incorrectly showing type="date" [4], and select helpers were documenting impossible boolean attributes. Over in the concurrency department, ActiveSupport JSON encoders are now Ractor-shareable [5], clearing the way for safer concurrent encoding in Ruby 3.2+. Meanwhile, solid_cable got a stability patch: reconnect attempts now reset properly after successful database access [6], preventing cascading failures on temporary connection hiccups.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] Report PostgreSQL default timestamp/time precision as 6 ↗ rails/rails
  2. [2] Merge pull request #57872 from 55728/fix-invert-drop-virtual-table-positional rails/rails
  3. [3] Merge pull request #57871 from 55728/fix-remove-check-constraint-if-exists-expression rails/rails
  4. [4] Fix incorrect RDoc examples in ActionView form helpers [ci skip] rails/rails
  5. [5] Make ActiveSupport::JSON encoders Ractor-shareable ↗ rails/rails
  6. [6] Reset reconnect_attempt after successfuly accessing the DB. ↗ rails/solid_cable

Quick answers

What shipped in Rails on June 27, 2026?
PostgreSQL timestamp columns now report their actual microsecond precision to Active Record, fixing a long-standing type casting inconsistency that could silently corrupt datetime handling across your stack. In total, 22 commits and 13 pull requests landed.
Who contributed to Rails on June 27, 2026?
3 developers shipped this update, including adrianna-chang-shopify, etiennebarrie, and pascalbetz.
What were the notable Rails updates?
Report PostgreSQL default timestamp/time precision as 6, Merge pull request #57872 from 55728/fix-invert-drop-virtual-table-positional, and Merge pull request #57871 from 55728/fix-remove-check-constraint-if-exists-expression.

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.