destroy(*records)
Instance Public methods
Destroys the records supplied and removes them from the
collection. This method will always remove record from the
database ignoring the :dependent option. Returns an array with
the removed records.
class Person < ActiveRecord::Base
has_many :pets
end
person.pets.size # => 3
person.pets
# => [
# #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>,
# #<Pet id: 2, name: "Spook", person_id: 1>,
# #<Pet