aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-06-06 09:22:15 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-06-06 09:22:15 +0900
commit46ca735a0170e28db49fa48939ed697e97ed9f54 (patch)
tree8db38ff3888e2a52309ab617e6b35ca4c9347a26 /activerecord/lib/active_record
parent2fa9de587e5affe8ddfdca7ec7a50051bda2f3e9 (diff)
downloadrails-46ca735a0170e28db49fa48939ed697e97ed9f54.tar.gz
rails-46ca735a0170e28db49fa48939ed697e97ed9f54.tar.bz2
rails-46ca735a0170e28db49fa48939ed697e97ed9f54.zip
[ci skip] UNIQUE constraint affects not only INSERT but also UPDATE
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/errors.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/errors.rb b/activerecord/lib/active_record/errors.rb
index 18fac5af1b..60d4fb70e0 100644
--- a/activerecord/lib/active_record/errors.rb
+++ b/activerecord/lib/active_record/errors.rb
@@ -105,7 +105,7 @@ module ActiveRecord
class WrappedDatabaseException < StatementInvalid
end
- # Raised when a record cannot be inserted because it would violate a uniqueness constraint.
+ # Raised when a record cannot be inserted or updated because it would violate a uniqueness constraint.
class RecordNotUnique < WrappedDatabaseException
end