У меня есть следующая модель
class Will < ApplicationRecord
belongs_to :user
belongs_to :product
has_one :willFamilyDetail, :dependent => :destroy
has_one :childCompensate, :dependent => :destroy
has_one :wifeCompensate, :dependent => :destroy
has_one :willDebt, :dependent => :destroy
has_one :willLegalHeirBequest, :dependent => :destroy
has_one :willGrandchildrenBequest, :dependent => :destroy
has_one :willBequestOther, :dependent => :destroy
end
, и все другие модели имеют принадлежность_ к.Когда я использую консоль Rails для удаления объекта Will, другие объекты все еще появляются в базе данных, они должны быть уничтожены правильно?
Что я делаю не так?