Public Instance methods
add_exclusion_constraint(elements, opts=OPTS)
Adds an exclusion constraint to an existing table, see CreateTableGenerator#exclude
.
[show source]
# File lib/sequel/adapters/shared/postgres.rb 140 def add_exclusion_constraint(elements, opts=OPTS) 141 @operations << {:op => :add_constraint, :type => :exclude, :elements => elements}.merge!(opts) 142 end
validate_constraint(name)
Validate the constraint with the given name, which should have been added previously with NOT VALID.
[show source]
# File lib/sequel/adapters/shared/postgres.rb 146 def validate_constraint(name) 147 @operations << {:op => :validate_constraint, :name => name} 148 end