惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
Y
Y Combinator Blog
T
Tailwind CSS Blog
G
Google Developers Blog
博客园 - Franky
Google DeepMind News
Google DeepMind News
阮一峰的网络日志
阮一峰的网络日志
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 聂微东
爱范儿
爱范儿
博客园 - 【当耐特】
腾讯CDC
T
The Blog of Author Tim Ferriss
MongoDB | Blog
MongoDB | Blog
H
Help Net Security
C
Check Point Blog
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence
博客园_首页
Stack Overflow Blog
Stack Overflow Blog
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

Ruby on Rails: Compress the complexity of modern web apps

Safer to_i coercion, custom to_fs formats, and more! This Week in Rails: May 16, 2026 This Week in Rails: May 8, 2026 This Week in Rails: May 1, 2026 Active Record gets better every week Great big Rails World 2026 update: CFP, Corporate Support tickets, workshops Query command for database queries and more Explicit query: and body: kwargs for integration tests and more! Speedup ActiveRecord::LogSubscriber#sql_color and more! This Week in Rails: March 27, 2026 Rails Versions 8.0.5 and 8.1.3 have been released! Rails Versions 7.2.3.1, 8.0.4.1, and 8.1.2.1 have been released! This Week in Rails: March 20, 2026 Validate URI scheme in Action Text and more This Week in Rails: March 6, 2026 Planning Center is the newest Rails Foundation Contributing member Action Text gets Markdown conversion, editor links in devcontainers, and more! BARRA seeks Rails developer Joe Agliozzo is looking for a Rails developer The rise of lighttpd as the alternative web server When longer is better and more is more Snowdevil: First e-tailer on Rails Natural selection for frameworks in Ruby vs Java Address book tutorial in Portuguese Becoming a better programmer with Rails 10 Things Every Java Programmer Should Know About Ruby Really Getting Started in Rails Off the Treadmill, Onto the Rails Rails 0.9.5: A world of fixes and tweaks Rich clients with Rails and XUL
Parallel testing improvements and more
David Heinemeier Hansson · 2025-05-02 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, May 2, 2025
Posted by Wojtek

Hi, Wojtek here. Let’s see what’s new in the Rails.

Rails World tickets coming soon

We’ve been informed that General Admission tickets will be available May 13. More information is coming soon, but you can already mark your calendar!

Implement ability to skip creating parallel testing databases
With parallel testing, Rails will create a database per process. If this isn’t desirable or you would like to implement databases handling on your own, you can now turn off this default behavior.

To skip creating a database per process, you can change it via the parallelize method:

parallelize(workers: 10, parallelize_databases: false)

or via the application configuration:

config.active_support.parallelize_databases = false

Add public API for before_fork_hook in parallel testing
This can be used to run anything before the processes are forked.

parallelize_before_fork do
  # perform an action before test processes are forked
end

Set default for primary keys in insert_all/upsert_all
Previously in PostgreSQL, updating and inserting new records in one upsert wasn’t possible due to null primary key values. nil primary key values passed into insert_all and upsert_all are now implicitly set to the default insert value specified by the adapter.

Update bundled trix
Updates trix to v2.1.14 which contains a security fix.

You can view the whole list of changes here. We had 12 contributors to the Rails codebase this past week!

Until next time!

Subscribe to get these updates mailed to you.