class Sequel::Postgres::AlterTableGenerator

  1. lib/sequel/adapters/shared/postgres.rb
Parent: Postgres

Public Instance methods

add_exclusion_constraint (elements, opts=OPTS)

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

[show source]
# File lib/sequel/adapters/shared/postgres.rb, line 74
def add_exclusion_constraint(elements, opts=OPTS)
  @operations << {:op => :add_constraint, :type => :exclude, :elements => elements}.merge(opts)
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, line 80
def validate_constraint(name)
  @operations << {:op => :validate_constraint, :name => name}
end