Fix upsert method comment

Because this method only updates or inserts a single record
like `insert` method.
This commit is contained in:
Ryo Hashimoto 2019-04-09 12:06:09 +09:00
parent e485c14a3e
commit ab6da0c4a8
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ module ActiveRecord
InsertAll.new(self, attributes, on_duplicate: :raise, returning: returning).execute InsertAll.new(self, attributes, on_duplicate: :raise, returning: returning).execute
end 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 # single SQL INSERT statement. It does not instantiate any models nor does
# it trigger Active Record callbacks or validations. Though passed values # it trigger Active Record callbacks or validations. Though passed values
# go through Active Record's type casting and serialization. # go through Active Record's type casting and serialization.