aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-03-07 10:45:04 +0900
committerGitHub <noreply@github.com>2019-03-07 10:45:04 +0900
commit2beb0b473606c60e5e1cbb3dac06ffa96f8ce456 (patch)
tree0addd779413c09592058a25f1db3e4c53b3fa7ed
parent21703382393c87212c27c988420ee5c133c1aa9f (diff)
parent6c797d6e03d774cfcaf4529f50052e42921e9fc8 (diff)
downloadrails-2beb0b473606c60e5e1cbb3dac06ffa96f8ce456.tar.gz
rails-2beb0b473606c60e5e1cbb3dac06ffa96f8ce456.tar.bz2
rails-2beb0b473606c60e5e1cbb3dac06ffa96f8ce456.zip
Merge pull request #35509 from willnet/fix-typo-in-persistence
[ci skip]Fix typo: constaint -> constraint
-rw-r--r--activerecord/lib/active_record/persistence.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb
index 72ccf7739f..a09b5f0e96 100644
--- a/activerecord/lib/active_record/persistence.rb
+++ b/activerecord/lib/active_record/persistence.rb
@@ -93,7 +93,7 @@ module ActiveRecord
# record or pass <tt>returning: false</tt> to omit the clause.
#
# [:unique_by]
- # (Postgres and SQLite only) In a table with more than one unique constaint or index,
+ # (Postgres and SQLite only) In a table with more than one unique constraint or index,
# new records may considered duplicates according to different criteria. By default,
# new rows will be skipped if they violate _any_ unique constraint/index. By defining
# <tt>:unique_by</tt>, you can skip rows that would create duplicates according to the given
@@ -218,7 +218,7 @@ module ActiveRecord
# record or pass <tt>returning: false</tt> to omit the clause.
#
# [:unique_by]
- # (Postgres and SQLite only) In a table with more than one unique constaint or index,
+ # (Postgres and SQLite only) In a table with more than one unique constraint or index,
# new records may considered duplicates according to different criteria. For MySQL,
# an upsert will take place if a new record violates _any_ unique constraint. For
# Postgres and SQLite, new rows will replace existing rows when the new row has the