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?
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?