You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BelongsToPresenceChecker shouldn't care if an association has required: true because any non-polymorphic belongs_to should have foreign keys and nulls are okay with that.
We have to rename the checker as it simply does slightly different than "belongs_to presence".
Suggested approach
Make BelongsToPresenceChecker to be derived from AssociationChecker and check if belongs_to has a foreign key.
Problem
BelongsToPresenceChecker
shouldn't care if an association hasrequired: true
because any non-polymorphicbelongs_to
should have foreign keys and nulls are okay with that.We have to rename the checker as it simply does slightly different than "
belongs_to
presence".Suggested approach
BelongsToPresenceChecker
to be derived fromAssociationChecker
and check ifbelongs_to
has a foreign key.As discussed here
The text was updated successfully, but these errors were encountered: