Module | DataMapper::Constraints::Adapters::DataObjectsAdapter |
In: |
lib/data_mapper/constraints/adapters/do_adapter.rb
|
Determine if a constraint exists for a table
@param storage_name [Symbol]
name of table to check constraint on
@param constraint_name [~String]
name of constraint to check for
@return [Boolean]
@api private
Create the constraint for a relationship
@param relationship [Relationship]
the relationship to create the constraint for
@return [true, false]
true if creating the constraints was successful
@api semipublic
Remove the constraint for a relationship
@param relationship [Relationship]
the relationship to remove the constraint for
@return [true, false]
true if destroying the constraint was successful
@api semipublic