Method: Foreigner::ConnectionAdapters::Table::InstanceMethods#remove_foreign_key

Defined in:
lib/foreigner/connection_adapters/abstract/schema_definitions.rb

#remove_foreign_key(options = {}) ⇒ Object

Remove the given foreign key from the table.

Examples
Remove the suppliers_company_id_fk in the suppliers table.
t.remove_foreign_key :companies
Remove the foreign key named accounts_branch_id_fk in the accounts table.
remove_foreign_key :column => :branch_id
Remove the foreign key named party_foreign_key in the accounts table.
remove_index :name => :party_foreign_key


82
83
84
# File 'lib/foreigner/connection_adapters/abstract/schema_definitions.rb', line 82

def remove_foreign_key(options = {})
  @base.remove_foreign_key(@table_name, options)
end