Rails :dependent => :destroy VS :dependent => :delete_all

In rails guides it’s described like this:

Objects will be in addition destroyed if they’re associated with :dependent => :destroy, and deleted if they’re associated with :dependent => :delete_all

Right, cool. But what’s the difference between being destroyed and being deleted?
I tried both and it seems to do the same thing.

4 Answers
4

Leave a Comment