method

remove_unique_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.

remove_unique_constraint(...)
public

Removes the given unique constraint from the table.

t.remove_unique_constraint(name: "unique_position")

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