method

destroy_all

Importance_1
v1.1.6 - Show latest stable - 0 notes - Class: ActiveRecord::Base
destroy_all(conditions = nil) public

Destroys the objects for all the records that match the condition by instantiating each object and calling the destroy method. Example:

  Person.destroy_all "last_login < '2004-04-04'"
Show source
Register or log in to add new notes.