Open
Description
Despite of counter intuitive, Rails API states that has_many :through
records must not be destroyed, but their associations https://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#method-i-has_many
If using with the
:through
option, the association on the join model must be abelongs_to
, and the records which get deleted are the join records, rather than the associated records.
paranoia
should have the same behavior