5.2 released 9 April 2018, latest 5.2.8.1.
Ruby on Rails 5.2 reached end of life on 1 June 2022.
What changed
Rails 5.2 added Active Storage, the framework’s built-in system for attaching files to Active Record models and storing them locally or through supported cloud services. It added encrypted credentials managed through a credentials file and key, a Redis-backed cache store, Content Security Policy configuration, and HTTP/2 Early Hints support. The cycle also changed framework internals and defaults in areas including Active Record dirty tracking, cache versioning, and test and development tooling, so applications moving from earlier Rails lines needed to review generated configuration as well as application code.
What staying costs
Rails 5.2 has reached end of life, so Rails no longer provides security fixes or maintenance releases for this line. A disclosed issue in Rails 5.2 or one of its maintained framework components may therefore require a local patch, a dependency workaround, or an accelerated upgrade. Staying on the line also increases dependency-management risk: newer Ruby versions, database adapters, JavaScript tooling, and ecosystem gems may drop compatibility with Rails 5.2, while older locked dependencies can retain their own known vulnerabilities. The longer an application remains on 5.2, the more upgrade work tends to accumulate in configuration defaults, deprecated APIs, tests, and third-party integrations.
What to do
Inventory the application’s Ruby version, Rails patch level, gems, database adapters, JavaScript packages, and deployment integrations, then establish a test suite that covers critical requests, background jobs, mail, file uploads, and authorization flows. Upgrade first to the latest available Rails 5.2 patch release if the application is not already there, resolve its deprecations, and use the Rails upgrade guides to move through subsequent Rails release lines in order rather than skipping directly across multiple major changes. At each step, adopt and test the new framework defaults deliberately, review initializer and environment configuration changes, and verify Active Storage, credentials, caching, and session behavior in production-like environments. Set a target supported Rails line and compatible Ruby version, update dependencies alongside each Rails step, and keep a rollback plan for each deployment.
We can tell you what moving off Ruby on Rails 5.2 involves.
What it takes to move off Ruby on Rails 5.2 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
