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 74
74:       def add_exclusion_constraint(elements, opts=OPTS)
75:         @operations << {:op => :add_constraint, :type => :exclude, :elements => elements}.merge(opts)
76:       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 80
80:       def validate_constraint(name)
81:         @operations << {:op => :validate_constraint, :name => name}
82:       end

[Validate]