David Fritsch

Results 3 issues of David Fritsch

The RedundantForeignKey cop was introduced here and calls out that it matches the logic from Rails: https://github.com/rubocop/rubocop-rails/pull/257 However, as part of Rails 7.0, the logic for determining the name of...

### Motivation / Background Adjusts the logic in inverse_polymorphic_association_changed? to determine if a has_one association's polymorphic association should autosave the associated record for a type change. Previously this would see...

activerecord

### Steps to reproduce This bug is directly related to https://github.com/rails/rails/issues/44986. ```ruby # frozen_string_literal: true require "bundler/inline" gemfile(true) do source "https://rubygems.org" git_source(:github) { |repo| "https://github.com/#{repo}.git" } gem "rails", github: "rails/rails",...

activerecord
attached PR