Upgrade Ruby and Rails prior to refactor