mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Unify foreign_key method signatures to take keyword arguments
This commit is contained in:
parent
deef6a35ed
commit
ba0c031148
1 changed files with 2 additions and 2 deletions
|
@ -148,7 +148,7 @@ module ActiveRecord
|
|||
end
|
||||
|
||||
if foreign_key
|
||||
table.foreign_key(foreign_table_name, foreign_key_options)
|
||||
table.foreign_key(foreign_table_name, **foreign_key_options)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -394,7 +394,7 @@ module ActiveRecord
|
|||
indexes << [column_name, options]
|
||||
end
|
||||
|
||||
def foreign_key(table_name, options = {}) # :nodoc:
|
||||
def foreign_key(table_name, **options) # :nodoc:
|
||||
foreign_keys << [table_name, options]
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue