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

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:
- You are on 8.1.x. Stay on the latest patch (8.1.4.1 at the time of writing). Patch releases inside a series are designed to be drop-in.
- You are on 8.0.x. You are now unsupported. The rest of this guide is for you.
- You are on 7.2 or older. The path is the same, only longer: one minor version at a time, 7.2 to 8.0, then 8.0 to 8.1.
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
- Green test suite on the current version. The upgrade guide is blunt that tests are the only reliable way to know the app still works. If coverage is thin, add request specs for the paths that make money before you start.
- Latest 8.0 patch first. Upgrade to the last 8.0.x release and fix its deprecation warnings. Deprecations are how Rails tells you, a version in advance, what 8.1 will break.
- Audit the Gemfile. Gems that pin
rails,activerecordorrailtiesbelow 8.1 will blockbundle update. Check each one's latest release; our guide to evaluating a Rails gem covers how to tell a maintained gem from an abandoned one, and securing your Gemfile explains how to keep the update from pulling in anything unexpected.
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
- Change the Rails line in the Gemfile to
"~> 8.1.4"and runbundle update rails. If Bundler refuses, it names the gem that pins an older version. - 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, especiallyconfig/environments/production.rb. You can setTHOR_DIFForTHOR_MERGEto use your own diff tool. - The task creates
config/initializers/new_framework_defaults_8_1.rb. Leaveconfig.load_defaultsat 8.0 for the first deploy, then switch the new defaults on one at a time over the following deploys. - Once every default is on, delete that file and set
config.load_defaults 8.1inconfig/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:
- Active Job Continuations: long jobs split into steps that resume from the last completed step after a restart, handy for imports and exports that die on deploy.
- Structured event reporting through
Rails.event, a single interface for tagged events instead of ad hoc log lines. - Local CI: a
config/ci.rbfile run bybin/ci. The announcement explains the bet: "Developer machines have gotten incredibly quick with loads of cores." - Deprecated associations, which let you mark an association as deprecated and warn, raise or notify when it is used, a gentle way to retire old relations.
The full list, including smaller changes per framework, is in the 8.1 release notes.
A checklist to keep
- Ruby 3.4 or 4.0 deployed and stable before starting.
- Latest 8.0 patch, zero deprecation warnings in the test log.
- Every gem that depends on Rails checked for an 8.1-compatible release.
bundle update rails, thenbin/rails app:updatewith every diff read.- New defaults enabled one by one;
load_defaults 8.1at the end. - The schema reordering diff committed separately.
- A reminder in the calendar for 10 October 2027, when 8.1 security support ends, unless a newer series has shipped by then.
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.
GuidesEvaluating a Rails gem
A practical checklist for judging a Ruby gem: maintenance signals, compatibility with Rails 7 and 8, dependencies, licence, and security advisories with bundler-audit.
GuidesSecuring your Gemfile
Advisories, cooldowns, frozen lockfiles and trusted publishing: a layered defence for Rails dependencies.
GuidesFrom plugins to engines
How Rails extensions moved from vendor/plugins to gems, Railties and engines between Rails 2 and Rails 4, and what that means when you read old tutorials or upgrade an old app.