Class/Module Index [+]

Quicksearch

Sequel::Postgres::AlterTableGenerator

Public Instance Methods

add_exclusion_constraint(elements, opts={}) click to toggle source

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

# File lib/sequel/adapters/shared/postgres.rb, line 74
def add_exclusion_constraint(elements, opts={})
  @operations << {:op => :add_constraint, :type => :exclude, :elements => elements}.merge(opts)
end
validate_constraint(name) click to toggle source

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

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.