Ruby on Rails 6.1

6.1 released 9 December 2020, latest 6.1.7.10.

Ruby on Rails 6.1 reached end of life on 1 October 2024.

What changed

Rails 6.1 extended the Rails 6.0 foundation with Active Record support for horizontal database sharding and more explicit connection handling across database roles and shards. It added strict loading, which can raise when code lazily loads associations that should have been preloaded, and delegated types for modeling a shared record that delegates to one of several concrete types. Active Job gained bulk-enqueue support for adapters that implement it. The cycle also included framework refinements and deprecations that became relevant when moving to later Rails releases.

What staying costs

Rails 6.1 has reached end of life, so application teams cannot rely on upstream security fixes, bug fixes, or compatibility updates for this line. The practical exposure grows as Ruby, database adapters, background-job adapters, test tooling, and hosting platforms move forward: staying pinned can force use of older dependency versions or require local patches. Teams also accumulate upgrade work when they defer Rails deprecations, especially around framework configuration, Active Record connection behavior, autoloading, and dependency constraints. Existing applications can continue to run, but incidents involving Rails itself or an unsupported dependency combination may have no upstream fix to adopt.

What to do

Plan an upgrade to a currently supported Rails line, using the Rails upgrade guides and the next major version as an intermediate step only when application dependencies make that safer. First upgrade to the latest available 6.1 patch release, update direct dependencies within their compatible ranges, and make the test suite reliable enough to detect framework behavior changes. Enable and resolve Rails deprecation warnings, review generated new-framework-defaults configuration, and compare application configuration with the output of rails app:update before adopting changed defaults. Test Active Record behavior carefully if the application uses multiple databases, read replicas, sharding, strict loading, or background-job adapters. Upgrade Ruby, Rails, database adapters, asset tooling, and deployment images as a tested set, then validate authentication, authorization, file uploads, mail delivery, jobs, caching, and schema migrations in a production-like environment before rollout.

We can tell you what moving off Ruby on Rails 6.1 involves.

What it takes to move off Ruby on Rails 6.1 depends on what you built on it — the version you are on, how much depends on it, and how much of the work is mechanical. Leave your email with this version and we can tell you what that looks like for you.

Not sure yet? Get my plan