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 188
188:       def validate(&block)
189:         Generator.new(self).process(&block)
190:       end

Add a validation metadata hash to the stored array.

[Source]

     # File lib/sequel/extensions/constraint_validations.rb, line 183
183:       def validation(opts)
184:         @validations << opts
185:       end

[Validate]