Skip to content

Commit ab6da0c

Browse files
committed
Fix upsert method comment
Because this method only updates or inserts a single record like `insert` method.
1 parent e485c14 commit ab6da0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/persistence.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def insert_all!(attributes, returning: nil)
178178
InsertAll.new(self, attributes, on_duplicate: :raise, returning: returning).execute
179179
end
180180

181-
# Updates or inserts (upserts) multiple records into the database in a
181+
# Updates or inserts (upserts) a single record into the database in a
182182
# single SQL INSERT statement. It does not instantiate any models nor does
183183
# it trigger Active Record callbacks or validations. Though passed values
184184
# go through Active Record's type casting and serialization.

0 commit comments

Comments
 (0)