Difference between Destroy and Delete

What is the difference between

@model.destroy and @model.delete

For example:

Model.find_by(col: "foo").destroy_all
//and
Model.find_by(col: "foo").delete_all

Does it really matter if I use the one or the other?

7 Answers
7

Leave a Comment