instance method
foreign_keys
Ruby on Rails 7.0.10
Since v4.2.9Signature
foreign_keys(table_name)
Returns an array of foreign keys for the given table. The foreign keys are represented as ForeignKeyDefinition objects.
Parameters
-
table_namereq
Source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1026
def foreign_keys(table_name)
raise NotImplementedError, "foreign_keys is not implemented"
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb line 1026
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::SchemaStatements