method

foreign_keys

rails latest stable - Class: ActiveRecord::ConnectionAdapters::SchemaStatements
foreign_keys(table_name)
public

Returns an array of foreign keys for the given table. The foreign keys are represented as ForeignKeyDefinition objects.