delete_all from the activerecord library not from FactoryGirl.
And the difference between the two:
delete_all (conditions = nil) public
- Deletes conditions matching the conditions of the record without instantiating the records, and therefore does not call the destroy method and does not call callbacks.
- This is one SQL DELETE statement that goes directly to the database, much more efficient than destroy_all.
- , , : , .
- .
destroy_all ( = nil) public
- , .
- ( : __/_).
- , ; , , ( ).
, , . SQL DELETE . , , delete_all.