Reference story / Nordic Security Alliance

Taking over a 2008 Rails application and bringing it to Rails 8

Intra has run Nordic Security Alliance's shift scheduling, work reports, billing and employee management since 2008. Cirit took the application over, brought it from Rails 2.3 to Rails 8 without a rewrite, and keeps developing it.

  • Ruby on Rails 8
  • Ruby 3
  • Containers
  • Infrastructure as code
  • Automated build pipeline
  • Maintenance

Updated

A Nordic Security Alliance security officer in uniform in an underground passage
Photo: Nordic Security Alliance

At a glance

six major versions, ported in one move

  1. 2.3
  2. 3
  3. 4
  4. 5
  5. 6
  6. 7
  7. 8

Rails 2.3 · Ruby 1.8.7in daily use since 2008

Rails 8 · Ruby 3live at the turn of 2025–26

Starting point

An internal system in daily use since 2008, still on Rails 2.3 and Ruby 1.8.7 seventeen years later. The old Rails version had become the limit: new features couldn't be built on it.

Result

The same system, with its data and business rules, six major Rails versions later: Rails 8, a current Ruby 3, containerised infrastructure defined as code and an automated build pipeline.

Approach

Take over the existing application, bring it up to date and keep developing it. No rewrite from scratch.

Since then

Ongoing maintenance and development, with a layout renewal under way before new features are added.

Nordic Security Alliance

Nordic Security Alliance is a Finnish security company that operates nationwide, with more than 400 trained security professionals and offices in Espoo, Tampere and Turku.

nordicsec.fi

System

Intra, NSA's internal system for shift scheduling, work reports, billing and employee management.

Timeline

  1. 2008Intra goes into daily use.
  2. Early 2025Still on Rails 2.3 and Ruby 1.8.7. New features can no longer be built on the platform.
  3. Spring 2025The bulk of the platform move: a current Rails skeleton, then Ruby 3.2 and Rails 8.0.
  4. Summer 2025Screen by screen through forms, reports, admin views, printing, uploads and email.
  5. Turn of 2025–26The new Intra goes live.
  6. 2026Maintenance and development. Layout renewal under way.

The situation

NSA’s Intra had been doing its job since 2008: shift lists, work and guard reports, billing reports and employee records for a business that runs on shifts. Over the years it had become a system the organisation depends on every day.

By early 2025 it was still running on Rails 2.3 and Ruby 1.8.7. The application still worked, but the platform had become the limit: on a Rails version that old, the new features NSA needed couldn’t be built.

The Nordic Security Alliance badge on a security officer's high-visibility vest
Shift lists, guard reports and billing for a business that runs on shifts all go through Intra. Photo: Nordic Security Alliance

The question was how to keep a system the business relies on usable and developable without throwing away years of accumulated rules: billing calculations under collective agreements, report workflows, permissions and the way the organisation actually works.

What we did, and why

Took it over first

Before changing anything, the Cirit team got the application running on a modern developer setup and documented how to start it from zero. The original code was kept intact in version history as a reference, so any behaviour could be checked against how it used to work.

Moved the platform in big steps

Rails 8 is six major versions newer than Rails 2.3. For an application that far behind, we port the existing code into a current Rails skeleton instead of climbing every release. The code, data and rules carry over; nothing is rewritten from scratch.

Here, the team moved the code onto a current Rails skeleton first, then to Ruby 3.2 and Rails 8.0. The bulk of the platform move happened in spring 2025.

Brought the application back to life screen by screen

A move this large leaves a long tail. Over the summer, the team went through the application screen by screen: forms, reports, admin views, printing, file uploads and email. Old syntax in the controllers and views was updated, and whatever the move had broken was fixed one feature at a time.

Rebuilt the infrastructure

The old server-based deployment was replaced with containers and infrastructure defined as code, with separate staging and production environments and an automated build pipeline. Scheduled jobs now run on the same container platform as the application instead of on a separate server. Configuration values and secrets are now managed centrally in a dedicated secret store.

Used real data safely

To test against reality, the team built a way to load an anonymised copy of production data into development and staging, so developers work with anonymised data instead of real personal information. That turned up problems no test data would have: character set mismatches in the database and old queries that behaved differently on modern Rails.

Removed what no longer earned its place

Some modules were no longer used. Rather than upgrade them, the team removed them, along with unused gems, scripts and configuration files.

Problems solved along the way

Encoding

Content stored over the years in mixed character sets was carried over intact, and the database character sets were made consistent.

Database migrations from 2008

The application carries 163 database migrations, the oldest written for the original Rails in 2008. They had to run again on a modern database without recreating columns that already existed.

File attachments

The old attachment plugin was replaced with Rails’ own file storage, so uploads and stored images work on the modern platform.

Speed

Reports and lists that loaded slowly got eager loading, new database indexes and fixes for repeated queries.

Data protection

The handling of personal data in reports was reviewed as part of the move.

Maintenance after the move

The new Intra went live at the turn of 2025 and 2026, and the work didn’t stop there. In 2026 the work has been the everyday kind: fixes to reports, emails and list performance, including faster queries in user and report lists. The database engine is kept current with security releases.

Alongside that, larger pieces are moving forward on their own branches: a cleaner configuration and deployment setup, and a renewed layout. The layout comes first on purpose, so new features don’t have to be built twice.

The result

Intra is the same system NSA’s people already knew, with the same data and the same rules, now running on a modern Rails platform that the Cirit team can maintain and keep developing.

A Nordic Security Alliance officer at an event, with the company logo on his shirt A Nordic Security Alliance officer seen from behind, wearing a hard hat with the company logo
The people who use Intra every day work in the field. Photos: Nordic Security Alliance

When we spoke with NSA in September 2026, Lilia Mielonen, CFO of Nordic Security Alliance, described working together as straightforward: issues are picked up quickly, things work, and anything that comes up is handled smoothly. Since the move, very few new bugs have appeared.

Most noticeably for the people using it every day, Intra is faster. That matters when employees are writing their reports and managers are planning shifts. NSA has received thanks from the field, because in practical work, speed helps.

“Intra works faster.

That matters when reports are written and shifts are planned, and people are happier for it.”

Lilia Mielonen, CFO, Nordic Security Alliance

Thinking about a Rails upgrade?

We take over existing applications, bring them up to date and keep developing them.

Talk to Cirit →