Switch to ruby-version.
Upgrade rails and ruby.