method

delete_all

Importance_1
v1.2.6 - Show latest stable - 0 notes - Class: ActiveRecord::Base
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')"
Show source
Register or log in to add new notes.