method
destroy
v5.1.7 -
Show latest stable
- Class:
ActiveRecord::Associations::CollectionAssociation
destroy(*records)public
Deletes the records and removes them from this association calling before_remove , after_remove , before_destroy and after_destroy callbacks.
Note that this method removes records from the database ignoring the :dependent option.