aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/persistence.rb
diff options
context:
space:
mode:
authorRyo Hashimoto <ryohashimoto@gmail.com>2019-04-09 12:06:09 +0900
committerRyo Hashimoto <ryohashimoto@gmail.com>2019-04-09 12:06:25 +0900
commitab6da0c4a88480d932051f0a2f6dc0c96593d948 (patch)
tree731de078d063e6fbc2596d03e3f23d7649cf336b /activerecord/lib/active_record/persistence.rb
parente485c14a3ee29ee486324a96545abf964d428101 (diff)
downloadrails-ab6da0c4a88480d932051f0a2f6dc0c96593d948.tar.gz
rails-ab6da0c4a88480d932051f0a2f6dc0c96593d948.tar.bz2
rails-ab6da0c4a88480d932051f0a2f6dc0c96593d948.zip
Fix upsert method comment
Because this method only updates or inserts a single record like `insert` method.
Diffstat (limited to 'activerecord/lib/active_record/persistence.rb')
-rw-r--r--activerecord/lib/active_record/persistence.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb
index bf2f61737b..e05490753f 100644
--- a/activerecord/lib/active_record/persistence.rb
+++ b/activerecord/lib/active_record/persistence.rb
@@ -178,7 +178,7 @@ module ActiveRecord
InsertAll.new(self, attributes, on_duplicate: :raise, returning: returning).execute
end
- # Updates or inserts (upserts) multiple records into the database in a
+ # Updates or inserts (upserts) a single record into the database in a
# single SQL INSERT statement. It does not instantiate any models nor does
# it trigger Active Record callbacks or validations. Though passed values
# go through Active Record's type casting and serialization.