method
remove_foreign_key
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::MySQL::SchemaStatements
remove_foreign_key(from_table, to_table = nil, **options)public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/mysql/schema_statements.rb, line 103
def remove_foreign_key(from_table, to_table = nil, **options)
# RESTRICT is by default in MySQL.
options.delete(:on_update) if options[:on_update] == :restrict
options.delete(:on_delete) if options[:on_delete] == :restrict
super
end