Update Gemfile to use latest 3.1.x version of Rails and run 'bundle update'