method

foreign_key_for

foreign_key_for(from_table, **options)
private

No documentation available.

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