Skip to content

Commit 145b007

Browse files
authored
Merge pull request #2183 from koic/refactor_schema_creation_to_extract_new_foreign_key_definition
Refactor schema creation to extract `new_foreign_key_definition`
2 parents 1ee85e5 + 10490ab commit 145b007

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)