rails/activerecord/test
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/connection_adapters Deduplicate various Active Record schema cache structures 2019-06-03 13:31:42 +02:00
activejob Remove unnecessary setters of use_transactional_tests 2023-06-16 14:05:49 -04:00
assets Replace test Man with Human 2020-08-14 11:37:09 -04:00
cases Raise on foreign_key: being passed as an array in associations 2023-10-13 17:10:07 +00:00
fixtures Fix destroy_all for has_many :through associations that points to a CPK model 2023-06-14 17:48:13 +00:00
migrations Sort migration ID as int in db:migrate:status for consistency. 2021-07-16 13:10:31 -05:00
models Use id in favor of send(primary_key) 2023-09-27 16:43:54 +00:00
schema Fix detecting IDENTITY columns for PostgreSQL < 10 2023-10-12 12:30:33 +03:00
support Fix ActiveRecord tests for PostgreSQL < 10 2023-10-12 12:29:27 +03:00
config.example.yml Move trilogy config closer to mysql2 2023-06-20 15:30:07 +00:00
config.rb Delete AS::Dependencies.safe_constantize 2021-08-20 17:51:05 +02:00