method

remove_constraint

rails latest stable - Class: ActiveRecord::ConnectionAdapters::SchemaStatements

Method not available on this version

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

remove_constraint(table_name, constraint_name)
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1348
      def remove_constraint(table_name, constraint_name) # :nodoc:
        at = create_alter_table(table_name)
        at.drop_constraint(constraint_name)

        execute schema_creation.accept(at)
      end