method

foreign_key_for

rails latest stable - Class: ActiveRecord::ConnectionAdapters::SchemaStatements
foreign_key_for(from_table, **options)
private

No documentation available.

# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1725
        def foreign_key_for(from_table, **options)
          return unless use_foreign_keys?
          foreign_keys(from_table).detect { |fk| fk.defined_for?(**options) }
        end