Skip to content

Question regarding dependent behavior #5619

Answered by comandeo
joep asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @joep,

The delete method only deletes the document itself. No callbacks are triggered, no associations are deleted. Contrary, the destroy method does what is expected. If you call Band.first.destroy, the albums will be deleted.

Thank you for pointing this out, I understand that the naming of the option and the documentation of the delete method can be improved.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@joep
Comment options

@comandeo
Comment options

Answer selected by joep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants