skip to content

How does Rails number its releases, and how long does a minor series such as 8.1 get bug fixes and security fixes?

level: middleimportance: should knowfreq 38%

answer

  1. shifted semver
  2. minor acts like a semver major
  3. fourth digit means security release
  4. one year bugs, two years security
  5. a feature release every six months

basics

~20 s

Rails uses a shifted semver: minors may break APIs after a deprecation, patches only fix bugs, and a fourth digit marks a security release. A minor series gets bug fixes for one year and security fixes for two years from its first release.

solid answer

~50 s

Rails' maintenance policy calls its scheme a shifted version of semver. A **minor** release (8.0 to 8.1) adds features and may change APIs, but breaking changes are paired with deprecation notices in the previous minor or major; a **major** is reserved for larger breaks; a **patch** (8.1.3 to 8.1.4) carries bug fixes only. A **security release** adds a fourth digit, as in 8.1.3.1, and is built from the last released version plus only the security patches. Each minor series gets **bug fixes for one year** and **security fixes for two years** after its first release, then reaches end of life. Rails aims at a feature release every six months and extends the previous series if a year passes without one. With 8.1.0 released on 2025-10-22, that arithmetic puts 8.1's bug-fix window to 2026-10-22 and its security window to 2027-10-22.

go deeper

for a junior

Know that 8.1.3.1 is a security release, 8.1.4 a patch and 8.1 a minor that can break things.

for a middle

Explain shifted semver, the one-year and two-year windows from the .0 release, and why staying on the latest patch matters.

for a senior

Turn the windows into dates for your app and plan the next minor before its bug-fix window ends, including any Ruby prerequisite.

for a principal

Use the six-month cadence and two-year security window to set an organisation-wide floor every app must stay above.

## The numbering scheme Rails' maintenance policy describes its version numbers as **"a shifted version of semver"**. The positions mean: | Position | Example | What it may contain | |---|---|---| | Major `X` | 7.x to 8.0 | new features and larger breaking changes, "usually reserved for special occasions" | | Minor `Y` | 8.0 to 8.1 | new features and API changes; it serves as a semver major | | Patch `Z` | 8.1.3 to 8.1.4 | bug fixes only, no API changes, except as needed for security | | Security `A` | 8.1.3 to 8.1.3.1 | only the direct security patches | The important shift is the minor: **a Rails minor can break your code**. The policy promises that breaking changes are **paired with deprecation notices in the previous minor or major release**, so an app that runs the previous minor without deprecation warnings has seen everything that will break. ## Support windows The policy counts every window from the **first release in a series** (the `.0`): - **New features** land only on the main branch, never in patch releases. - **Bug fixes:** a minor series gets them for **one year**. Fixes are backported to the `x-y-stable` branch and released as patch versions. - **Security fixes:** a minor series gets them for **two years**, then reaches **end of life**. - **After end of life** no new versions are released. Fixes may be merged to the stable branch, and the policy suggests pointing the Gemfile at that branch with Git, or upgrading. Two more rules matter when planning: 1. **Cadence.** Rails aims to ship a feature release every **six months**. If a year passes with no release, support for the previous release is extended until the next one ships. 2. **Security releases are cut from the last release.** 8.1.3.1 is 8.1.3 plus the security patches, nothing else. An app on the latest patch can take a security release with almost no risk; an app several patches behind takes all those bug-fix changes at once. ## The 7.0 to 8.1 line From 7.0, the line runs 7.0, 7.1, 7.2, 8.0, 8.1: four release steps, each of which may remove something deprecated in the step before. At the pin, 8.1.0 shipped on 2025-10-22 and the current release is 8.1.4. Applying the policy's arithmetic, which the policy itself does not spell out per series: - 8.1 bug fixes until 2026-10-22; - 8.1 security fixes until 2027-10-22, unless the extension rule applies. Older series follow the same rule from their own `.0` dates. ## Ruby requirements move with it Rails' minimum Ruby changes along the same line: - Rails 7.0 and 7.1 need Ruby 2.7 or newer; - Rails 7.2 needs Ruby 3.1; - Rails 8.0 and 8.1 need Ruby 3.2. Since 7.2, Rails drops Ruby versions that are end of life in **minor** releases, no longer only in majors. A Ruby upgrade can therefore become a prerequisite of a minor Rails upgrade. ## Common misreadings - **"Only majors break."** In Rails the minor is the breaking step. 7.2 and 8.1 each removed APIs that the release before had deprecated, without a major bump. - **"Support lasts until the next release."** The windows are fixed from the `.0` date. A series keeps security support after newer minors ship, and loses it on schedule even if you have not upgraded. - **"A security release is a normal patch."** It contains only the security fix on top of the last release; regular bug fixes that piled up on the stable branch wait for the next patch. - **"Patch releases are optional."** Skipping patches makes the next security release larger and riskier, because it lands on top of the latest patch, not on yours. - **"Rails versions and npm versions match."** Rails' npm packages cannot use a fourth digit, so a gem security release such as `7.0.1.4` is published to npm as `7.0.104`. ## What it means for an app - Staying on the **latest patch** of your series keeps security releases cheap. - An app on a series past its bug-fix window still gets security releases, but every other fix needs an upgrade. - An app on a series past its security window runs an end-of-life framework; that is the deadline to plan against, not the release of the next minor.

  • Why is a security release such as 8.1.3.1 easy to apply only if you are already on 8.1.3?
    Security releases are built from the last released version plus the security patches alone. From 8.1.3 the step contains nothing else. From 8.1.1 you also take every bug fix released in 8.1.2 and 8.1.3, which is a real upgrade rather than a patch.
  • Why can a minor Rails release require a Ruby upgrade?
    Since Rails 7.2 the policy drops Ruby versions that are end of life in minor releases, not only majors. Rails 7.2 raised the minimum to Ruby 3.1, and Rails 8.0 and 8.1 need Ruby 3.2.

  • Rails follows strict semver, so only a major such as 9.0 can break code.
  • A minor series gets security fixes until the next minor ships.
  • A security release like 8.1.3.1 includes all bug fixes queued on the stable branch.
  • Support windows are counted from the latest patch release in the series.
  • Rails only drops old Ruby versions in major releases.

Assumes Rails 8.1 (8.1.0 released 2025-10-22, 8.1.4 current at the pin); the windows are the maintenance policy's one and two years counted from 8.1.0.