Guides

Rails 8.0 is out of security support: upgrading to 8.1, step by step

Guides · · Published 2026-11-25

Two sets of railway tracks joining at a junction on a sunny day, with trees on either side
A junction between two lines: an upgrade is easier one switch at a time. Photo: DanTD, Wikimedia Commons, CC0.

On 7 November 2026, Rails 8.0 dropped out of security support. Any app still on an 8.0.x release will not get a patched version the next time a vulnerability is disclosed in Action Pack or Active Record. The way out is short, because 8.0 to 8.1 is a minor upgrade, but it rewards doing it in the right order. This guide walks through the routine we use: check where you stand, sort out Ruby first, then move Rails one step at a time.

Where support stands in November 2026

The Rails maintenance policy gives each minor series one year of bug fixes and two years of security fixes from its first release. The current table reads: 8.1.x gets bug fixes until 10 October 2026 and security fixes until 10 October 2027; 8.0.x got bug fixes until 7 May 2026 and security fixes until 7 November 2026. Everything older is already unsupported. The same page notes that if no new feature release comes out within a year, the previous release's support is extended until the next one ships, which matters this autumn: as of today, the newest version on RubyGems is 8.1.4.1, a security release published on 4 November 2026, and there is no 8.2 yet.

If you prefer a single page that tracks every framework you depend on, endoflife.date keeps the same dates for Rails alongside Ruby, PostgreSQL and Node.

In practice there are three situations:

Step 1: check Ruby before touching Rails

Rails 8.0 and 8.1 both need Ruby 3.2 or newer, and the official upgrade guide recommends upgrading Ruby and Rails separately, Ruby first. That advice has teeth this year. The Ruby core team's branch status page lists Ruby 3.2 as end-of-life since 1 April 2026, and 3.3 in security-only maintenance until the end of March 2027. Ruby 3.4 and 4.0 (released on 25 December 2025) are in normal maintenance, and a 4.1 preview is out ahead of the usual Christmas release.

So an app on Rails 8.0 and Ruby 3.2 has two expired components. Move Ruby to 3.4 first, deploy, let it run for a few days, and only then start on Rails. Mixing the two makes every failing test ambiguous.

Step 2: get the app ready

Large apps sometimes run two lockfiles side by side during the transition, so CI can test against both versions. The next_rails gem automates that "dual boot" setup; for a single minor step it is usually more machinery than you need.

Step 3: the upgrade itself

  1. Change the Rails line in the Gemfile to "~> 8.1.4" and run bundle update rails. If Bundler refuses, it names the gem that pins an older version.
  2. Run bin/rails app:update. It goes through your config files one by one and shows a diff for each change; read them instead of accepting everything, especially config/environments/production.rb. You can set THOR_DIFF or THOR_MERGE to use your own diff tool.
  3. The task creates config/initializers/new_framework_defaults_8_1.rb. Leave config.load_defaults at 8.0 for the first deploy, then switch the new defaults on one at a time over the following deploys.
  4. Once every default is on, delete that file and set config.load_defaults 8.1 in config/application.rb.

For 8.0 to 8.1, the guide lists one change that surprises teams in code review: Active Record now sorts table columns alphabetically in db/schema.rb. Your first migration after the upgrade will produce a large, harmless diff. Commit it on its own so it does not hide real changes; apps that need the physical column order can keep using structure.sql.

Step 4: what you get in return

A security fix is reason enough, but 8.1 also brought features worth turning on once the dust settles. The release announcement of 22 October 2025, which credits more than 500 contributors and 2,500 commits, highlights:

The full list, including smaller changes per framework, is in the 8.1 release notes.

A checklist to keep

Engines and older plugins are the usual blockers in this kind of upgrade. If yours depends on one, our history of how Rails plugins became engines explains why some of them hard-code framework versions, and what to look for in their gemspec.