Class Sequel::Postgres::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 96
96:       def add_exclusion_constraint(elements, opts=OPTS)
97:         @operations << {:op => :add_constraint, :type => :exclude, :elements => elements}.merge!(opts)
98:       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 102
102:       def validate_constraint(name)
103:         @operations << {:op => :validate_constraint, :name => name}
104:       end

[Validate]