method

delete_all

delete_all(conditions = nil)
public

Deletes all the records that match the condition without instantiating the objects first (and hence not calling the destroy method). Example:

  Post.delete_all "person_id = 5 AND (category = 'Something' OR category = 'Else')"