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

Upgrading Rails

  1. Read Upgrading Ruby on Rails first.
  2. Edit gem 'rails', '~> x.y.z' part in version you want to update.
  3. Run bundle update rails. If it succeeds, go to step 5.
  4. Edit Gemfile to update depend gem, and run bundle update rails <depend gem> until it succeeds.
  5. Run bin/rails app:update and overwrite all files. Then, compare changes with git diff` and put necessary configurations back.
  6. 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.
  7. Push branch and create pull request.

Past examples

Clone this wiki locally