module Sequel::ConstraintValidations::CreateTableGeneratorMethods
Additional methods for the create_table generator to support constraint validations.
Attributes
An array of stored validation metadata, used later by the database to create constraints.
Public Instance Methods
Source
# File lib/sequel/extensions/constraint_validations.rb 221 def validate(&block) 222 Generator.new(self).process(&block) 223 end
Call into the validate DSL for creating constraint validations.
Source
# File lib/sequel/extensions/constraint_validations.rb 216 def validation(opts) 217 @validations << opts 218 end
Add a validation metadata hash to the stored array.