aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Schneeman <richard.schneeman@gmail.com>2016-01-08 21:21:23 -0600
committerRichard Schneeman <richard.schneeman@gmail.com>2016-01-08 21:21:23 -0600
commit37dadb0dc93076d8c4343f52a29edc3adc45b6f1 (patch)
tree938e0640f6138f3609736c4b2bd9802e36a50839
parent34ac8a1e98e85b28fe3ee02a83c85cdaa4b77714 (diff)
parentec9dce583ba01a9ffc2373b67a53809db72ded3a (diff)
downloadrails-37dadb0dc93076d8c4343f52a29edc3adc45b6f1.tar.gz
rails-37dadb0dc93076d8c4343f52a29edc3adc45b6f1.tar.bz2
rails-37dadb0dc93076d8c4343f52a29edc3adc45b6f1.zip
Merge pull request #22987 from prathamesh-sonpatki/add-missing-changelong-for-schema-migrations-version
Added missing CHANGELOG entry for https://github.com/rails/rails/pull/22976
-rw-r--r--activerecord/CHANGELOG.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 5790528e97..3199951f68 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,11 @@
+* Use `version` column as primary key for schema_migrations table because
+ schema_migrations versions are guaranteed to be unique.
+
+ This makes it possible to use `update_attributes` on models that do
+ not have a primary key.
+
+ *Richard Schneeman*
+
* Add short-hand methods for text and blob types in MySQL.
In Pg and Sqlite3, `:text` and `:binary` have variable unlimited length.