We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d48a356 + 6f1208d commit ef4201cCopy full SHA for ef4201c
activerecord/lib/active_record/relation.rb
@@ -820,7 +820,7 @@ def upsert(attributes, **kwargs)
820
#
821
# [:returning]
822
# (PostgreSQL, SQLite3, and MariaDB only) An array of attributes to return for all successfully
823
- # inserted records, which by default is the primary key.
+ # upserted records, which by default is the primary key.
824
# Pass <tt>returning: %w[ id name ]</tt> for both id and name
825
# or <tt>returning: false</tt> to omit the underlying <tt>RETURNING</tt> SQL
826
# clause entirely.
0 commit comments