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

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.
Bb4bdf2b184027bc38d4fb529770cde5?d=identicon&s=25 Wes Gamble (weyus)
on 2007-04-16 22: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?

Thanks,
Wes
153868096910b6bca47e2a9212c2df56?d=identicon&s=25 Frederick Cheung (fcheung)
on 2007-04-17 11:05
Delete literally just executes "DELETE FROM foos where = 123". Nothing
fancy (easily verifiable from the source)

Fred
This topic is locked and can not be replied to.