see https://github.com/rails/rails/issues/15471