Skip Navigation
Show nav
Heroku Dev Center Dev Center
  • Get Started
  • Documentation
  • Changelog
  • Search
Heroku Dev Center Dev Center
  • Get Started
    • Node.js
    • Ruby on Rails
    • Ruby
    • Python
    • Java
    • PHP
    • Go
    • Scala
    • Clojure
    • .NET
  • Documentation
  • Changelog
  • More
    Additional Resources
    • Home
    • Elements
    • Products
    • Pricing
    • Careers
    • Help
    • Status
    • Events
    • Podcasts
    • Compliance Center
    Heroku Blog

    Heroku Blog

    Find out what's new with Heroku on our blog.

    Visit Blog
  • Log in or Sign up
View categories

Categories

  • Heroku Architecture
    • Compute (Dynos)
      • Dyno Management
      • Dyno Concepts
      • Dyno Behavior
      • Dyno Reference
      • Dyno Troubleshooting
    • Stacks (operating system images)
    • Networking & DNS
    • Platform Policies
    • Platform Principles
  • Developer Tools
    • Command Line
    • Heroku VS Code Extension
  • Deployment
    • Deploying with Git
    • Deploying with Docker
    • Deployment Integrations
  • Continuous Delivery & Integration (Heroku Flow)
    • Continuous Integration
  • Language Support
    • Node.js
      • Node.js Behavior in Heroku
      • Troubleshooting Node.js Apps
      • Working with Node.js
    • Ruby
      • Rails Support
      • Working with Bundler
      • Working with Ruby
      • Ruby Behavior in Heroku
      • Troubleshooting Ruby Apps
    • Python
      • Working with Python
      • Background Jobs in Python
      • Python Behavior in Heroku
      • Working with Django
    • Java
      • Java Behavior in Heroku
      • Working with Java
      • Working with Maven
      • Working with Spring Boot
      • Troubleshooting Java Apps
    • PHP
      • Working with PHP
      • PHP Behavior in Heroku
    • Go
      • Go Dependency Management
    • Scala
    • Clojure
    • .NET
      • Working with .NET
  • Databases & Data Management
    • Heroku Postgres
      • Postgres Basics
      • Postgres Getting Started
      • Postgres Performance
      • Postgres Data Transfer & Preservation
      • Postgres Availability
      • Postgres Special Topics
      • Migrating to Heroku Postgres
    • Heroku Key-Value Store
    • Apache Kafka on Heroku
    • Other Data Stores
  • AI
    • Working with AI
    • Vector Database
    • Model Context Protocol
    • Heroku Inference
      • AI Models
      • Inference Essentials
      • Inference API
      • Heroku Inference Quick Start Guides
  • Monitoring & Metrics
    • Logging
  • App Performance
  • Add-ons
    • All Add-ons
  • Collaboration
  • Security
    • App Security
    • Identities & Authentication
      • Single Sign-on (SSO)
    • Private Spaces
      • Infrastructure Networking
    • Compliance
  • Heroku Enterprise
    • Enterprise Accounts
    • Enterprise Teams
    • Heroku Connect (Salesforce sync)
      • Heroku Connect Administration
      • Heroku Connect Reference
      • Heroku Connect Troubleshooting
  • Patterns & Best Practices
  • Extending Heroku
    • Platform API
    • App Webhooks
    • Heroku Labs
    • Building Add-ons
      • Add-on Development Tasks
      • Add-on APIs
      • Add-on Guidelines & Requirements
    • Building CLI Plugins
    • Developing Buildpacks
    • Dev Center
  • Accounts & Billing
  • Troubleshooting & Support
  • Integrating with Salesforce

Rails Version Support

English — 日本語に切り替える

Last updated March 17, 2025

Table of Contents

  • Rails Version Configuration
  • Supported Rails Versions
  • Rails Version Support Policy
  • Additional Reading

You can run different versions of Rails on Heroku. This article describes our Rails version support policy.

Rails Version Configuration

To specify the Rails version for your application, put it in your Gemfile.

Supported Rails Versions

Supported Versions on Cedar Apps

You can use any version of Rails ever deployed on the platform. However, we can’t promise that older versions of Rails can work on the oldest available Ruby version on a given stack.

For example, if Rails 3.2 can’t run on Ruby 2.4.10 or higher, then you can’t run a Rails 3.2 application on Heroku. We don’t maintain version compatibility information between Ruby and Rails.

Supported Versions on Fir Apps

The minimum version is Rails 5+. You can deploy a Rails 5+ application if it uses a supported Ruby version and conforms to the Ruby application contract. The recommended minimum Rails version is 7.1 +, which reaches end of life on Rails Core on October 1st, 2024.

Rails Version Support Policy

Heroku’s support of Rails versions mirrors the Rails Core version support.

If your version of a library, such as Rails, doesn’t work on a supported Ruby version, you can use a service such as Rails LTS. Rails LTS provides a maintained version of older releases for a fee. The Rails LTS project isn’t affiliated with Heroku or with Rails Core.

If you’re not using a Rails Core officially supported version or an LTS-supported version, your application likely has unpatched security vulnerabilities. We recommend always staying on an officially supported Rails version.

Support Policy on Cedar Apps

Heroku doesn’t sunset availability for older Rails versions.

Support Policy on Fir Apps

Ruby on Fir can contain version-specific code paths to help make deploying and running Rails versions easier.

If a Rails version is no longer supported, its version-specific buildpack code paths don’t receive bug fixes. Those code paths are still accessible but we can remove them in the future following a sunsetting process. Any code-specific paths go through a deprecation cycle where apps that rely them see warnings before removal.

We won’t remove version-specific code until after the most recent builder becomes unavailable. For example, if Rails 7.2 support ends while heroku-24 is the most recent builder, any Rails 7.2 specific code from the buildpack remains until after heroku-24 sunsets and is no longer accessible on the platform.

In addition, Rails versions are limited by the Ruby version they can utilize; therefore, they must use a supported Ruby version.

Additional Reading

  • Heroku Ruby Support
  • Specifying a Ruby Version
  • Ruby Application Behavior on Heroku
  • Rails Application Behavior on Heroku
  • Rails Support category

Feedback

Log in to submit feedback.

Information & Support

  • Getting Started
  • Documentation
  • Changelog
  • Compliance Center
  • Training & Education
  • Blog
  • Support Channels
  • Status

Language Reference

  • Node.js
  • Ruby
  • Java
  • PHP
  • Python
  • Go
  • Scala
  • Clojure
  • .NET

Other Resources

  • Careers
  • Elements
  • Products
  • Pricing
  • RSS
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku Blog
    • Heroku News Blog
    • Heroku Engineering Blog
  • Twitter
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku
    • Heroku Status
  • Github
  • LinkedIn
  • © 2025 Salesforce, Inc. All rights reserved. Various trademarks held by their respective owners. Salesforce Tower, 415 Mission Street, 3rd Floor, San Francisco, CA 94105, United States
  • heroku.com
  • Legal
  • Terms of Service
  • Privacy Information
  • Responsible Disclosure
  • Trust
  • Contact
  • Cookie Preferences
  • Your Privacy Choices