rails/activerecord/lib
Nikita Vasilevsky 529d1f55a8
Raise on foreign_key: being passed as an array in associations
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.
2023-10-13 17:10:07 +00:00
..
active_record Raise on foreign_key: being passed as an array in associations 2023-10-13 17:10:07 +00:00
arel Merge pull request #48095 from ippachi/triple-dot-range-unscope 2023-09-04 17:16:25 +09:00
rails/generators Simplify the implementation to register the correct source_path for the migration template 2023-05-24 22:54:12 +00:00
active_record.rb Change has_secure_token default to on: :initialize 2023-09-01 20:17:22 +00:00
arel.rb Fix a code block in the Arel documentation 2023-05-06 18:57:12 -07:00