Skip to content

Commit ef4201c

Browse files
authored
Merge pull request rails#53928 from claudiob/upsert_doc
Fix `:returning` docs for `upsert_all` [ci skip]
2 parents d48a356 + 6f1208d commit ef4201c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/relation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ def upsert(attributes, **kwargs)
820820
#
821821
# [:returning]
822822
# (PostgreSQL, SQLite3, and MariaDB only) An array of attributes to return for all successfully
823-
# inserted records, which by default is the primary key.
823+
# upserted records, which by default is the primary key.
824824
# Pass <tt>returning: %w[ id name ]</tt> for both id and name
825825
# or <tt>returning: false</tt> to omit the underlying <tt>RETURNING</tt> SQL
826826
# clause entirely.

0 commit comments

Comments
 (0)