Skip to content
RailsDev.io
Legacy Rails Application Modernization

Legacy Rails application modernization, without a risky rewrite

Legacy Rails modernization is the incremental upgrade of a working but dated Rails app — framework, Ruby, dependencies, asset tooling and tests — done in reversible steps while the app keeps shipping features.

An old Rails app usually still works, which is exactly why it's hard to justify touching it, until a security advisory, a hosting change or a hiring problem forces the issue. I modernize legacy Rails applications step by step, so the app keeps running and shipping features while it's brought up to date.

That means upgrading Rails and Ruby one version at a time, replacing unmaintained gems, moving CoffeeScript, jQuery and old asset tooling to a modern setup, and adding the tests that make each step safe. A full rewrite is rarely the right answer, and if I think it is for your app, I'll tell you.

  • Rails 4/5/6 to Rails 8
  • Zero-downtime releases
  • Security patches applied
Who it's for

Is this the right fit?

You're on an unsupported Rails or Ruby version

Your version no longer gets security fixes, and auditors, customers or your hosting provider have started asking about it.

Gems are holding you back

Key dependencies are abandoned or pinned, so adding a feature means fighting the Gemfile.

The frontend is stuck in the past

CoffeeScript, tangled jQuery, Sprockets or Webpacker make every UI change slow and fragile.

Nobody wants to work on it

The dated stack makes hiring hard, and the people who knew the code have moved on.

What's included

What you get

Upgrade assessment

Versions, test coverage, deprecated APIs and gem compatibility checked, with a realistic plan and estimate.

Safety-net tests

Tests added around the critical paths first, so each upgrade step can be verified.

Incremental upgrades

Rails and Ruby upgraded one version at a time, with dual booting and deprecation fixes keeping main deployable.

Dependency cleanup

Abandoned gems replaced, pinned versions freed and the vulnerabilities bundler-audit reports closed.

Frontend modernization

CoffeeScript and jQuery moved to modern JavaScript, Hotwire or React, built with importmap, esbuild or Vite.

Performance and hosting

Slow queries and N+1s fixed, and the app moved to modern hosting such as Docker and Kamal if needed.

How it works

From first call to launch

  1. 01

    Assess

    Read the code, run the tests, check the dependencies and write the upgrade plan with milestones.

  2. 02

    Stabilize

    Add missing tests, fix flaky ones and set up CI, so regressions show up before production does.

  3. 03

    Upgrade in steps

    One version at a time, each released to production on its own, behind the same tests.

  4. 04

    Modernize and hand over

    Clean up the frontend and infrastructure, then document the new setup for your team.

Tools I use for this

  • Ruby on Rails
  • PostgreSQL
  • RSpec & Capybara
  • Hotwire / Turbo
  • Stimulus
  • TypeScript
  • Vite
  • Docker & Kamal
  • CI/CD Workflows
Related work

Products I've worked on

Pasture.io homepage: aerial view of green farm paddocks with the headline “Know your feed. Back your decisions.”
AgTech / SaaS

Pasture.io – Satellite-Driven Pasture Management SaaS

A single web platform for pasture covers, growth rates, a feed wedge and grazing planner, plus farm records for grazings, fertiliser, spraying, and tasks. The Pio assistant combines satellite imagery, weather, and farm records to show daily pasture changes and forecast conditions.

AU · NZ · UK · US
4 Regions
Needed to Start
No Hardware
Sejasa homepage: home services search with customer, job, rating and city counts
Home Services Marketplace

Sejasa – On-Demand Home Services Marketplace

A two-sided marketplace with clear pricing for daily services, up to three offers to compare on projects, staged payments through SejasaPay, and verified providers backed by guarantees. Providers join as partners to receive job requests.

Customers
750k+
Cities
100+
Field notes

Upgrading without stopping the world

The rule that keeps modernization sane is one major version at a time: Rails 5 to 6 to 7 to 8, Ruby 2.x to 3.x, each with app:update reviewed line by line rather than applied blind. Before the first step I add the missing tests around the money paths — auth, billing, anything that writes to the database — because they are the only safety net that matters mid-flight.

The rest is a checklist that never surprises: deprecation warnings fixed, unmaintained gems replaced or vendored, CoffeeScript and jQuery retired in favour of Stimulus, Propshaft or Vite instead of the legacy asset pipeline, production data rehearsed in staging. A full rewrite is rarely the right answer; if yours is, the report will tell you why — with the migration path, not just the opinion.

FAQ

Common questions

Can you upgrade straight from Rails 4 to Rails 8?

Not safely in one jump. Each version changes defaults and removes deprecated APIs, so I go through them one at a time and release each step. Problems stay small and easy to find, which makes it faster overall.

Will there be downtime?

No planned downtime. Each upgrade step is a normal deploy, and database migrations are written to run safely on a live database.

Should we rewrite the app instead?

Usually not. A rewrite throws away years of bug fixes and business rules and stops feature work for months, while upgrading in place keeps the product moving.

Can we keep shipping features during the upgrade?

Yes. Upgrade work happens in small branches merged into main, so feature work carries on alongside it.

What if the app has few or no tests?

That's common in legacy apps. I start by adding tests around the most important flows, such as sign-up, checkout and billing, before changing any versions.

From the blog

How I build it

Start a Project

Let’s Build Your Rails or AI Product

Schedule a discovery call or send a direct project brief to get started.

Prefer email? hello@railsdev.io

Strict NDA protection guaranteed