Skip to content

Commit 496e8ee

Browse files
Merge pull request rails#35903 from ryohashimoto/fix_upsert_method_comment
[ci skip] Fix `#upsert` method comment
2 parents e485c14 + ab6da0c commit 496e8ee

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)