Upgrade ruby and rails

https://www.pivotaltracker.com/n/projects/877197/stories/70181972