ROBATZ editorial · · Updated · 7 min read
The short answer. Upgrade when the product still fits the business and the main problems are an unsupported Rails version, aging dependencies or slow releases. Consider a rewrite only for a specific part of the product that blocks a material requirement, and only when the evidence shows that changing it costs more than replacing it. In most cases the result is an incremental upgrade, sometimes combined with replacing one bounded component, rather than a full rebuild.
Name the problem you are paying to solve
An old version, a slow page and a difficult release process are three different problems. Rewriting the application is one possible response, but it does not automatically solve all three. Start with the business impact: which customer journeys fail, which changes take too long and which dependencies are difficult to support? Describe the constraint before choosing a replacement stack.
A Rails upgrade addresses framework and dependency compatibility. A targeted redesign can improve a specific workflow. An architectural change may be warranted when the current boundaries prevent the product from evolving. These investments can be sequenced. Treating them as separate decisions often reveals useful improvements that do not depend on a complete rebuild.
Check where your version stands
Support status turns “we should upgrade some day” into a dated risk. Under the Rails maintenance policy, each release series gets security fixes for two years after its first release; after that, “it’s your own responsibility to deal with bugs and security issues.” As of November 2026, Rails 8.1 is the only series still receiving security fixes (until October 10, 2027). Security support for 8.0 ended on November 7, 2026, and for 7.2 on August 9, 2026.
If your application runs on an unsupported series, new vulnerabilities in the framework will be published but not fixed for your version. That is a reason to plan, not a reason to rewrite: getting back onto a supported version is usually an upgrade project.
Build a compact evidence pack
Inventory Ruby, Rails, key gems, background jobs, databases, integrations and deployment tooling. Check current support status against the official maintenance policy rather than relying on a version number remembered from an earlier project. Record which components are actively maintained and which ones the team has patched locally.
Then inspect the product behavior: authentication, payments, permissions, data exports and any workflow with financial or operational consequences. Identify the automated tests that protect those paths and the gaps that require attention. Include production errors and performance measurements. The assessment should explain where risk comes from, rather than merely produce a long list of outdated packages.
The decision matrix: upgrade, partial rewrite or full rewrite
Use the evidence pack to fill in this matrix. Read it row by row: each row points toward one path. A clear pattern across most rows is a decision; a split usually points to an upgrade plus a targeted change.
| Signal | Points to an upgrade | Points to a partial rewrite (one component) | Points to a full rewrite |
|---|---|---|---|
| Product fit | The product still serves the business; problems are maintenance and speed of change | One area (billing, reporting, an integration) blocks a material requirement | The business model or core workflows have changed so much that most behavior must change anyway |
| Test coverage of critical journeys | Critical journeys are covered, or can be covered first | Coverage is good outside the problem area | Little coverage and little documented behavior, and the product will be redesigned anyway |
| Dependencies | Most gems are maintained; a few need replacement | One abandoned or forked dependency is tightly coupled to one area | The core depends on components with no supported path forward |
| Architecture | Boundaries are workable; code is messy but changeable | One module’s design is the constraint; the rest can stay | Boundaries prevent most planned changes, shown by specific examples |
| Data | Data model still fits | One area needs a new data model with a migration plan | The data model must change throughout the product |
| Team knowledge | People understand the code and the business rules | Knowledge gaps concentrated in one area | Nobody can explain how core behavior works, and it cannot be recovered from tests or users |
| Business tolerance for transition | Needs continuous delivery of features during the work | Can run old and new side by side for one area | Can accept a long parallel run, data migration and retraining |
Two cautions. First, “the code is old” and “the developers prefer another stack” are not rows in this matrix; neither describes a business constraint. Second, a full rewrite carries all the transition costs of the partial one, multiplied across the whole product. Treat it as the exception that must be argued for.
Prefer an upgrade when the product still fits
If the application serves the business and its main problems are dependency age or maintenance friction, an upgrade is a strong candidate. The official Rails upgrade guide recommends good test coverage before you start and moving “one minor version at a time” to make use of deprecation warnings. It also recommends upgrading Ruby and Rails separately. Exact steps depend on the application's starting point and dependencies.
Plan around customer journeys, not only a successful bundle installation. An upgrade should include staging validation, background processing, external integrations and deployment behavior. Keep unrelated feature work limited during the riskiest changes. A clear release boundary makes it easier to identify what caused a regression and decide whether to proceed or roll back.
Require a specific case for a rewrite
A rewrite deserves consideration when a material product requirement cannot be met sensibly within the existing architecture, or when the cost of changing it is demonstrably worse than replacement. Ask for that case in concrete terms. Which capability is blocked? Which options were investigated? How will the replacement reduce the constraint rather than move it into a new codebase?
Include the work that a clean demonstration omits: historical data, permissions, edge cases, customer migration, integrations and operational tooling. Existing behavior may encode rules no longer documented elsewhere. Interview the people who handle exceptions. Their knowledge can be more important to replacement scope than the number of controllers or lines of code.
Compare migration paths, not just development estimates
Ask for at least two feasible paths, such as an incremental upgrade and a staged replacement of one bounded area. Compare time to the first useful result, transition complexity, data risk, support burden and the effect on the product roadmap. Mark assumptions explicitly. An estimate that depends on an undocumented integration should show that dependency.
For a staged replacement, define which system owns each record and how changes stay consistent during the transition. For an upgrade, define the release sequence and recovery point. In both cases, identify who approves the change and how customer support will recognize migration-related problems. The safest plan is specific about the transition, not merely the destination.
Buy a decision before buying the whole project
A useful modernization assessment should leave you with a prioritized risk list, a recommended path, alternatives, an initial delivery scope and an estimate with assumptions. It should also distinguish urgent support concerns from improvements that can wait. Request a small technical experiment when a critical dependency or migration behavior is uncertain.
Agree how you will judge the result: supported dependencies, reliable deployments, fewer production incidents or a specific product capability. Choose measures relevant to the original problem. A new stack is not itself a business outcome, and preserving the existing application is not an objective at any cost. The decision should make future delivery more dependable. If budget is the open question, see what drives the cost of a Rails upgrade.
Frequently asked questions
Is it cheaper to upgrade or rewrite a Rails application?
In most cases an incremental upgrade costs less and carries less risk, because the product keeps working and shipping during the work. A rewrite also has to rebuild existing behavior, migrate data and run in parallel with the old system. The exact comparison depends on test coverage, dependencies and how much of the product needs to change anyway.
When does a Rails rewrite make sense?
When a specific, material product requirement cannot reasonably be met in the current architecture, and the evidence shows that changing it costs more than replacing it. Even then, replacing one bounded component is usually safer than rewriting the whole application.
Can you upgrade Rails across several major versions?
Yes. The official guide recommends moving one minor version at a time and fixing deprecations at each step, and we recommend releasing each step before starting the next. Several version steps take longer, but each one stays small enough to test and roll back.
What should we do first if our Rails version is no longer supported?
Write down your Rails and Ruby versions, check them against the official maintenance policy, list unmaintained gems and confirm which critical journeys are covered by tests. That evidence pack is enough to decide on a path and plan the first step.
Can we keep building features during an upgrade?
Usually yes, if the upgrade runs in small, released steps. Keep unrelated feature work away from the riskiest changes, such as the version bump itself and framework defaults, so regressions are easy to trace.
Apply this to your product
Explore our Ruby on Rails development and software modernization services for scope, deliverables and the decisions to make before starting.