Module DataMapper::Constraints::DeleteConstraint::ClassMethods
In: lib/dm-constraints/delete_constraint.rb

Methods

Constants

CONSTRAINT_OPTIONS = [ :protect, :destroy, :destroy!, :set_nil, :skip ].to_set.freeze

Public Instance methods

Checks that the constraint type is appropriate to the relationship

@param cardinality [Fixnum] cardinality of relationship

@param name [Symbol] name of relationship to evaluate constraint of

@param options [Hash] options hash

@raise ArgumentError

@return [nil]

@api semi-public

[Validate]