instance method
change_foreign_key
Ruby on Rails edge
Since edgeSignature
change_foreign_key(from_table, to_table = nil, **options)
Changes an existing foreign key on a table. Currently only the PostgreSQL adapter (version 18.4+) implements this; see PostgreSQL::SchemaStatements#change_foreign_key for details.
Parameters
-
from_tablereq -
to_tableopt = nil -
optionskeyrest
Source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1339
def change_foreign_key(from_table, to_table = nil, **options)
raise NotImplementedError, "change_foreign_key is not implemented"
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb line 1339
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::SchemaStatements