Upgrading Rails is one of those tasks that feels urgent right up until a planning meeting happens and it gets quietly shuffled to next quarter. Again. The fear isn’t irrational a major version bump can break gems, surface deprecations you ignored for months, and pull two or three engineers off feature work right when the product team needs them most.
But leaving a Rails app on an aging version isn’t a neutral choice security patches thin out, performance improvements pile up on the other side of the wall, and eventually the upgrade becomes a rewrite-sized project.
The good news is that you don’t have to choose between a stable upgrade and a moving product timeline. With the right sequencing, most teams can run both in parallel without the kind of freeze that kills momentum.
Planning the Upgrade So It Doesn’t Stall Feature Work
Breaking a Rails upgrade into manageable phases starts well before you change a line of code. Whether the work is done in-house or with help from a Rails development agency, the upgrades that stall tend to share one root cause: they’re treated as one giant block of work rather than a staged project running alongside normal delivery. That framing, not the upgrade itself, is what triggers freezes.
Splitting the migration into small, testable increments means each phase gets its own pull request, earns an independent review, and ships without disturbing whatever feature the product manager has marked as the current priority.
Start by running bin/rails app:update to see how your configuration files differ from the new version’s defaults. That command only updates config files it won’t tell you what’s deprecated or insecure. To find those, run your full test suite on the new version with deprecation warnings enabled and captured, run bundle audit to check for known vulnerabilities, and run bundle outdated to see which gems stand between you and the target version.
Treat the combined output as your list of changes, and sort it into three buckets: security issues, deprecations that affect existing functionality, and cosmetic warnings you can defer. Security issues always come first. Deprecations that touch high-traffic code paths come next. Everything cosmetic goes into a backlog card and stays there until the functional work is done.
This triage alone saves most teams a week of unfocused effort, because engineers stop jumping between priority levels at random and instead work through a defined sequence that product can reason about and schedule around.
Running the Upgrade in a Dedicated Branch
Open a long-lived branch for the upgrade something like rails-upgrade-8-0 and wire up a CI pipeline that runs your complete test suite against it every night. It does a few things worth having. The upgrade stays isolated from your main branch, so a half-finished gem fix can’t block feature work.
You also get a live signal each morning: the suite is green (progress) or something broke overnight (information). Engineers can move between feature branches and the upgrade branch without losing their place, because the upgrade’s current state lives in CI output rather than in anyone’s head.
Consider dual booting as well. The next_rails gem lets your app boot against either the current or the next Rails version from the same codebase, using a next? check in the Gemfile. Fixes that work on both versions can then land on main continuously, and CI can run the suite against both, which keeps the long-lived branch small and cuts the risk of painful merges later.
The branch approach works best when you pair it with a clear ownership rule. Assign the upgrade to one or two engineers whose sprint allocation explicitly covers it, not as a side project they squeeze in, but as scheduled work with defined hours each week. That’s usually 20% to 30% of sprint capacity during the migration’s active phases. Product planning around a known budget is manageable planning around “whenever we have time” isn’t.
Handling Gem Compatibility Without Blocking Features
Gem compatibility is where most Rails upgrades slow down. A single dependency locked to an older version can block the whole migration, and the instinct is often to freeze feature work until the gem is resolved. There’s a better pattern.
Bundler loads only one version of each gem per app, so you can’t keep an old version running alongside the new one. Instead, for gems that don’t have a compatible release yet, choose one of three routes: fork the gem and patch it for the new Rails version, vendor the code into your app if it’s small enough to own, or replace it with a maintained alternative.
Forking or vendoring is usually the fastest, and replacement is the best long-term fix. None of these needs to be permanent, but each lets the rest of the migration keep moving instead of stalling on one dependency.
For gems that are actively maintained but haven’t cut a compatible release yet, open a GitHub issue or check for release candidates. Many maintainers have a compatible version in progress. Document every temporary fork or pin with a comment in your Gemfile that includes the issue link and an expected resolution date. Future engineers including you in three months will thank you for it.
Keeping Your Team Shipping While the Upgrade Runs
The hardest part of a parallel upgrade strategy isn’t technical. It’s organizational. Engineers feel the pull toward “let’s just finish the upgrade first,” and that impulse is understandable context switching has a real cost. But a well-structured process can reduce that cost significantly, and making the boundary between upgrade work and feature work explicit rather than fuzzy is what matters most.
Make your CI/CD pipeline the primary coordination mechanism. Run two pipelines in parallel: your standard main-branch pipeline for feature releases, and the upgrade-branch pipeline for migration progress. Set a policy requiring the upgrade branch to stay green before any new fixes land on it. Treat a red upgrade pipeline the same way you’d treat a broken main branch.
That policy sounds strict, but it keeps the upgrade in a deployable state at all times, meaning you could ship the moment the test suite goes fully green. Teams that let failures pile up on the upgrade branch “to fix later” end up with a branch that’s six weeks stale and effectively unmergeable.
Deprecation Warnings as a Sprint Metric
One practical technique is tracking active deprecation warnings as a sprint metric. At the start of each two-week sprint, count how many deprecation warnings the upgrade branch emits across the full test run. Set a target to cut that number by a fixed amount before the sprint closes, say, 15 warnings resolved per sprint. That turns a vague “make progress on the upgrade” into a concrete, measurable unit of work that fits naturally into a sprint review.
This approach has a useful side effect: it spreads upgrade work across multiple sprints without demanding a dedicated “upgrade sprint” that halts feature delivery. Product can plan around it because the cost is predictable.
Engineers own a defined slice without feeling like the entire migration is on their shoulders. And the warning count gives leadership a clear, honest signal of where things stand, so no project manager needs to chase someone for a status update on a number that’s already tracked in CI.
Conclusion
Upgrading Rails without freezing your product roadmap is really a sequencing problem, not a technical one. Triage deprecations before you write a single fix, run the upgrade in an isolated branch (or dual boot it) with a nightly CI signal, fork, vendor, or replace incompatible gems rather than stalling the migration, and turn deprecation warnings into a measurable sprint metric.
Each of those moves keeps the upgrade advancing without pulling engineers away from the features your product depends on. Teams that pull this off aren’t the ones with the most engineering hours they’re the ones with the clearest process. Start small, keep the branch green, and the upgrade lands without the freeze.

