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
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
Delete literally just executes “DELETE FROM foos where = 123”. Nothing
fancy (easily verifiable from the source)
Fred
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs