aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2018-02-14 16:51:15 -0800
committerGitHub <noreply@github.com>2018-02-14 16:51:15 -0800
commitfe6adf43e124f4c9132e5a88a80ebba3f10fd2cb (patch)
tree9b038131edd2aa8735e7996a9646f927a354f0c2 /activerecord/CHANGELOG.md
parentfbc7d63ab46a50bb716dd96059fc4e898b0b865f (diff)
downloadrails-fe6adf43e124f4c9132e5a88a80ebba3f10fd2cb.tar.gz
rails-fe6adf43e124f4c9132e5a88a80ebba3f10fd2cb.tar.bz2
rails-fe6adf43e124f4c9132e5a88a80ebba3f10fd2cb.zip
Add #create_or_find_by to lean on unique constraints (#31989)
Add #create_or_find_by to lean on unique constraints
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index d73c0859ee..bbb0ec575e 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,9 @@
+## Rails 6.0.0.alpha (Unreleased) ##
+
+* Add ActiveRecord::Base.create_or_find_by/! to deal with the SELECT/INSERT race condition in
+ ActiveRecord::Base.find_or_create_by/! by leaning on unique constraints in the database.
+
+ *DHH*
Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/activerecord/CHANGELOG.md) for previous changes.