Forum: Ruby on Rails Verify a statement about AR Base delete vs. destroy

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Wes G. (Guest)
on 2007-04-17 00:29
If I call the delete(id) method on a AR Base descendant, should I expect
the automatic deletion of child records specified via has_many
:children, :dependent => :delete_all to occur or not?

Frederick C. (Guest)
on 2007-04-17 13:05
Delete literally just executes "DELETE FROM foos where = 123". Nothing
fancy (easily verifiable from the source)

This topic is locked and can not be replied to.