aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorArthur Neves <arthurnn@gmail.com>2014-12-30 12:36:37 -0500
committerArthur Neves <arthurnn@gmail.com>2014-12-30 12:36:37 -0500
commit5acd24bbeae0e9e5e81e87b5929e17f35527b2ea (patch)
tree2c9612fb542c1a96f94f39cdd7362e27ab6cbdb4 /activerecord/CHANGELOG.md
parent20ea1a2adf85ef33496fda879e565f7ee72456e9 (diff)
downloadrails-5acd24bbeae0e9e5e81e87b5929e17f35527b2ea.tar.gz
rails-5acd24bbeae0e9e5e81e87b5929e17f35527b2ea.tar.bz2
rails-5acd24bbeae0e9e5e81e87b5929e17f35527b2ea.zip
Ensures that primary_key method will return nil when multi-pk
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.
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?`.