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

推荐订阅源

G
Google Developers Blog
D
Docker
Stack Overflow Blog
Stack Overflow Blog
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Google DeepMind News
Google DeepMind News
M
MIT News - Artificial intelligence
H
Help Net Security
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
L
LangChain Blog
MongoDB | Blog
MongoDB | Blog
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
SegmentFault 最新的问题
博客园 - 司徒正美
C
Check Point Blog
B
Blog
Y
Y Combinator Blog
Microsoft Azure Blog
Microsoft Azure Blog
P
Proofpoint News Feed
F
Fortinet All Blogs
美团技术团队
D
DataBreaches.Net

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
This Week in Rails: November 21, 2025
David Heinemeier Hansson · 2025-11-21 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, November 21, 2025
Posted by zzak

Hi, it’s zzak. Let’s explore this week’s changes in the Rails codebase.

Add support for per-adapter migration strategy
You can now set migration_strategy on individual adapter classes, overriding the global ActiveRecord.migration_strategy. This allows individual databases to customize migration execution logic:

class CustomPostgresStrategy < ActiveRecord::Migration::DefaultStrategy
  def drop_table(*)
    # Custom logic specific to PostgreSQL
  end
end

ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.migration_strategy = CustomPostgresStrategy

Make explain accept hash format syntax
This PR changes EXPLAIN clause building for MySQL and PostgreSQL adapters to accept options in hash format. This allows more flexibility when specifying options such as the output format.

Car.all.explain(format: :json)
# or
Car.connection.explain(query, [], [{format: :json}]
# will generate the proper `FORMAT=JSON` on MySQL or `FORMAT JSON` on PostgreSQL

Fast failure mode for local CI
This PR introduces a cli argument --fail-fast (or -f), as commonly used by for example minitest and RSpec.

Support text/markdown format in DebugExceptions middleware
Add support for returning markdown-formatted error responses when the HTTP client prefers text/markdown in the Accept header. When text/markdown is requested, the middleware renders the existing text templates with Content-Type: text/markdown instead of text/html. This allows CLI tools (e.g., Claude Code) and other clients to receive byte/token-efficient error output in markdown format.

Implement LocalCache strategy on MemoryStore
This PR simply prepends Strategy::LocalCache to ActiveSupport::Cache::MemoryStore which adds common behavior for cache stores. The memory store needs to respond to the same interface as other cache stores (e.g. ActiveSupport::NullStore).

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

Until next time!

Subscribe to get these updates mailed to you.