Skip to content
Eito Katagiri edited this page Apr 3, 2021 · 4 revisions

Upgrading Rails

  1. Read Upgrading Ruby on Rails first.
  2. Create new branch.
  3. Edit gem 'rails', '~> x.y.z' part.
  4. Run bundle update rails. If it succeeds, go to step 6.
  5. Edit Gemfile to update depend gem, and run bundle update rails <depend gem> until it succeeds.
  6. Run bin/rails app:update and overwrite all files. Then, compare changes with git diff` and put necessary configuration back.
  7. Read "Upgrading from Rails a.b to Rails x.y" in [Upgrading Ruby on Rails] (https://guides.rubyonrails.org/upgrading_ruby_on_rails.html), and make change if needed.
  8. Push branch and create pull request.

Past examples

Clone this wiki locally