dependent-destroy
Rails, How to setup a Dependent Destroy for a nested model set? [duplicate]
This question already has answers here: Closed 10 years 开发者_JAVA百科ago. Possible Duplicate: Rails - Help understanding how to use :dependent => :destroy[详细]
2023-02-28 10:14 分类:问答How can I delete an entry from a HABTM join table in rails?
Through many iterations of testing, I just noticed that my join table that represents a HABTMrelationship between two models isn\'t removing entries when instances of these models get deleted. 开发者_[详细]
2022-12-14 08:28 分类:问答