Skip to content

Commit 10490ab

Browse files
committed
Refactor schema creation to extract new_foreign_key_definition
Follow rails/rails@ecd4c84.
1 parent 1ee85e5 commit 10490ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_record/connection_adapters/oracle_enhanced/schema_creation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def visit_TableDefinition(o)
2121
statements << accept(o.primary_keys) if o.primary_keys
2222

2323
if supports_foreign_keys?
24-
statements.concat(o.foreign_keys.map { |to_table, options| foreign_key_in_create(o.name, to_table, options) })
24+
statements.concat(o.foreign_keys.map { |fk| accept fk })
2525
end
2626

2727
create_sql << "(#{statements.join(', ')})" if statements.present?

0 commit comments

Comments
 (0)