Module Sequel::ConstraintValidations::CreateTableGeneratorMethods
In: lib/sequel/extensions/constraint_validations.rb

Additional methods for the create_table generator to support constraint validations.

Methods

Attributes

validations  [R]  An array of stored validation metadata, used later by the database to create constraints.

Public Instance methods

Call into the validate DSL for creating constraint validations.

[Source]

     # File lib/sequel/extensions/constraint_validations.rb, line 219
219:       def validate(&block)
220:         Generator.new(self).process(&block)
221:       end

Add a validation metadata hash to the stored array.

[Source]

     # File lib/sequel/extensions/constraint_validations.rb, line 214
214:       def validation(opts)
215:         @validations << opts
216:       end

[Validate]