So Rails 2.6 has been released and I just went thru the normal update dance. Here’s how I handled upgrading my system. Let’s start with the basics:
- OSX Mojave
- Ruby 2.5.1
- MySQL (yeah, yeah I know; not apologizing)
Here is what I did (you should know that I hit issues with older versions of Yarn and Node so I’ve included updating them as part of this):
- Started a terminal session.
Verified my ruby version:
Verified my rails version:
curl -o- -L https://yarnpkg.com/install.sh bash
You can either start a new terminal to get your path exports correct (it is set on Terminal start) or simply do this:
brew upgrade node
Upgrade Ruby to 2.6.2 (not required but I figured why not):
rvm install 2.6.2
Change to the new ruby:
rvm use ruby-2.6.2
Generate a new application:
rails new lauck –database=mysql
- If you got anxious and generated a new application prior to installing a new ruby then, you would need to update the Gemfile to reflect the Ruby version and bundle install.
Note: I’ve named this new test application after one of my favorite librarians.
Posted In: #rails