aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-10-26 14:23:09 +0900
committerGitHub <noreply@github.com>2017-10-26 14:23:09 +0900
commita3536b473c00ab872307fcbaae2b363b6919d6ba (patch)
treefa544bd02a1629d814b2486d8f0ddac423f8097d /activerecord/lib/active_record
parent802678d3dc27f1659c7bbdc5c0bbb86af2b25349 (diff)
parente5ce7bcbae1a9eaa40d9e094ae43e3b9226324cf (diff)
downloadrails-a3536b473c00ab872307fcbaae2b363b6919d6ba.tar.gz
rails-a3536b473c00ab872307fcbaae2b363b6919d6ba.tar.bz2
rails-a3536b473c00ab872307fcbaae2b363b6919d6ba.zip
Merge pull request #30989 from joevandyk/patch-3
remove incorrect comment about serializable transactions [ci skip]
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/validations/uniqueness.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/validations/uniqueness.rb b/activerecord/lib/active_record/validations/uniqueness.rb
index f4ad58c087..4c2c5dd852 100644
--- a/activerecord/lib/active_record/validations/uniqueness.rb
+++ b/activerecord/lib/active_record/validations/uniqueness.rb
@@ -205,9 +205,7 @@ module ActiveRecord
# | # Boom! We now have a duplicate
# | # title!
#
- # This could even happen if you use transactions with the 'serializable'
- # isolation level. The best way to work around this problem is to add a unique
- # index to the database table using
+ # The best way to work around this problem is to add a unique index to the database table using
# {connection.add_index}[rdoc-ref:ConnectionAdapters::SchemaStatements#add_index].
# In the rare case that a race condition occurs, the database will guarantee
# the field's uniqueness.