def destroy(*args)
      # Destroy dependent relationships
      self.class.relationships.each do |name, options|
        destroy_relationship(name, *args) if options[:dependent] == :destroy
      end
    end
def destroy(*args)
      # Destroy dependent relationships
      self.class.relationships.each do |name, options|
        destroy_relationship(name, *args) if options[:dependent] == :destroy
      end
    end
Destroys the model. The exact behaviour of this method is expected to be
 defined on the subclasses. This method on AbstractModel simply
 propagates the destroy to the dependent relationships. For more information
 on relationships, see {Relatable}.