instance method remove_unique_constraint

Ruby on Rails 8.0.4

Since v7.1.6

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

remove_unique_constraint(...)

Removes the given unique constraint from the table.

t.remove_unique_constraint(name: "unique_position")

See connection.remove_unique_constraint

Parameters

... req
Source
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 338
        def remove_unique_constraint(...)
          @base.remove_unique_constraint(name, ...)
        end

Defined in activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb line 338 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::PostgreSQL::Table

Type at least 2 characters to search.

↑↓ navigate · open · esc close