I’m lookin for an equilvalent to SQL ‘… on delete restrict’. To
prevent
deleting a parent record if there are related children records.
Looking at
the :dependent => options I see
:dependent => :destroy and :dependent => :nullify,
but not a :dependent => :restrict?
What is the best solution in this case?
–
Best Regards,
-Larry
“Work, work, work…there is no satisfactory alternative.”
— E.Taft Benson