Class Sequel::AlterTableGenerator
In: lib/sequel/adapters/shared/postgres.rb
Parent: Sequel::Schema::AlterTableGenerator

Methods

Public Instance methods

Adds an exclusion constraint to an existing table, see CreateTableGenerator#exclude.

[Source]

     # File lib/sequel/adapters/shared/postgres.rb, line 118
118:       def add_exclusion_constraint(elements, opts=OPTS)
119:         @operations << {:op => :add_constraint, :type => :exclude, :elements => elements}.merge!(opts)
120:       end

Validate the constraint with the given name, which should have been added previously with NOT VALID.

[Source]

     # File lib/sequel/adapters/shared/postgres.rb, line 124
124:       def validate_constraint(name)
125:         @operations << {:op => :validate_constraint, :name => name}
126:       end

[Validate]