method

remove_foreign_key

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Class: Table
remove_foreign_key(*args, **options) public

Removes the given foreign key from the table.

t.remove_foreign_key(:authors)
t.remove_foreign_key(column: :author_id)

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

Show source
Register or log in to add new notes.