method

remove_foreign_key

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

Method not available on this version

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

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