Skip to content

Instantly share code, notes, and snippets.

@ccelestial
Forked from kirankarki/Upgrading rails 5.0 to 5.1
Created September 20, 2018 08:20
Show Gist options
  • Save ccelestial/604c51e04ab5e771f3733f231fc558c4 to your computer and use it in GitHub Desktop.
Save ccelestial/604c51e04ab5e771f3733f231fc558c4 to your computer and use it in GitHub Desktop.
Notes on upgrading rails 5.0 to 5.1
1. Change rails version in Gemfile
> gem 'rails', '~> 5.1', '>= 5.1.4'
2. Remove Gemfile.lock
> git rm Gemfile.lock
3. Run bundle install command
> bundle install --jobs=5
4. Run rails' app update to apply changes to app
> rails app:update
Notes: check the differences first by choosing 'd' and then, choose 'Y or 'n' accordingly.
5. Run update to install dependencies, update db and remove old logs
> bin/update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment