method

exclusion_constraint

rails latest stable - Class: ActiveRecord::ConnectionAdapters::PostgreSQL::Table

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

exclusion_constraint(...)
public

Adds an exclusion constraint.

t.exclusion_constraint("price WITH =, availability_range WITH &&", using: :gist, name: "price_check")

See {connection.add_exclusion_constraint}[rdoc-ref:SchemaStatements#add_exclusion_constraint]