aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 53d5ec07a3..48c1027460 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,11 @@
+* When table has a composite primary key, the `primary_key` method for
+ sqlite3 and postgresql was only returning the first field of the key.
+ Ensures that it will return nil instead, as AR dont support composite pks.
+
+ Fixes #18070.
+
+ *arthurnn*
+
* `validates_size_of` / `validates_length_of` do not count records,
which are `marked_for_destruction?`.