529d1f55a8
Associations have never allowed nor supported `foreign_key` option being passed as an Array. This still holds true for Rails 7.1 However with Rails 7.1 supporting composite primary keys it may become more common for applications to mistakenly pass an array to `foreign_key:`. This commit adds an exception to raise when `foreign_key:` is passed as an array. |
||
---|---|---|
.. | ||
active_record | ||
arel | ||
rails/generators | ||
active_record.rb | ||
arel.rb |