Update Rails to a version that is fully compatible with Ruby 2.