Active Record PostgreSQL Adapter Table
Methods
Included Modules
Instance Public methods
exclusion_constraint(*args) Link
Adds an exclusion constraint.
t.exclusion_constraint("price WITH =, availability_range WITH &&", using: :gist, name: "price_check")
remove_exclusion_constraint(*args) Link
Removes the given exclusion constraint from the table.
t.remove_exclusion_constraint(name: "price_check")
remove_unique_constraint(*args) Link
Removes the given unique constraint from the table.
t.remove_unique_constraint(name: "unique_position")
unique_constraint(*args) Link
Adds a unique constraint.
t.unique_constraint(:position, name: 'unique_position', deferrable: :deferred)