Forum: Ruby on Rails Deleting the association entry for has_and_belongs_to_many w

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Brian L. (Guest)
on 2006-02-10 22:22
(Received via mailing list)
I know that for has_many, and has_one.

I can do :dependent => true and the associated object will be
destroyed when the main object is destroyed.

However, there does not seem to be a dependent like option for
has_and_belongs_to_many.

Is there one I do not know of?  Is there a simple solution to this?

Thanks,

Brian

--
www.kenlet.com
This topic is locked and can not be replied to.