https://github.com/rails/rails/issues/16194