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