27 cards
Posted over 9 years ago. Visible to the public.

Updating Rails LTS to a newer version

This document assumes you have installed Rails LTS before and want to update to a new version of the Rails LTS gem. As a subscriber to the Rails LTS service, you will be notified whenever a new version for Rails LTS becomes available.

  1. If you have installed Rails LTS with Bundler, simply run the following comment within your Rails project directory:

    bundle update rails

    After updating, check that your Gemfile.lock contains the expected changes.

    If booting Rails now gives you this error:

    Missing the Rails 2.3.18 gem. Please gem install -v=2.3.18 rails, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.

    ... then open config/environment.rb within your project directory and delete the following line:

    RAILS_GEM_VERSION = '2.3.xx' unless defined? RAILS_GEM_VERSION

    If you have installed Rails LTS without Bundler simply repeat the installation process.

  2. Confirm that you are running the latest version.

  3. Follow your normal release process (run tests, deploy to staging, do smoke testing, deploy to production)

Congratulations! You have now successfully updated your application. If you have chosen to subscribe to the Rails LTS Notification List when signing up, you will be notified whenever a new patch for Rails LTS becomes available.

Does your version of Ruby on Rails still receive security updates?
Rails LTS provides security patches for unsupported versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2).

Owner of this card:

Henning Koch
Last edit:
over 2 years ago
by Henning Koch
upgrade, recent, release
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
This website uses short-lived cookies to improve usability.
Accept or learn more