method

remove_foreign_key

Importance_1
v6.0.0 - Show latest stable - 0 notes - Class: Table
remove_foreign_key(*args) 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.