aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/validations
diff options
context:
space:
mode:
authorJoe Van Dyk <joevandyk@gmail.com>2017-10-25 19:52:21 -0700
committerGitHub <noreply@github.com>2017-10-25 19:52:21 -0700
commite5ce7bcbae1a9eaa40d9e094ae43e3b9226324cf (patch)
treefa544bd02a1629d814b2486d8f0ddac423f8097d /activerecord/lib/active_record/validations
parent802678d3dc27f1659c7bbdc5c0bbb86af2b25349 (diff)
downloadrails-e5ce7bcbae1a9eaa40d9e094ae43e3b9226324cf.tar.gz
rails-e5ce7bcbae1a9eaa40d9e094ae43e3b9226324cf.tar.bz2
rails-e5ce7bcbae1a9eaa40d9e094ae43e3b9226324cf.zip
remove incorrect statement about serializable transactions
using serializable isolation would prevent the duplicate insert as done in the example from happening
Diffstat (limited to 'activerecord/lib/active_record/validations')
-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.