It seems strange that your app is so broken with a minor version update. Are you sure you are changing just the last number in the string, and not trying to jump a full version of Rails?
https://github.com/rails/rails/pull/7509
https://github.com/rails/rails/pull/7661