Skip to content

Commit

Permalink
Update documentation for ActiveRecord persistence methods that accept…
Browse files Browse the repository at this point in the history
… +returning+ option to note that this is available for SQLite3 adapter as well

Co-authored-by: OuYangJinTing <[email protected]>
  • Loading branch information
fractaledmind and OuYangJinTing committed Dec 28, 2023
1 parent 354d1c4 commit 77800d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions activerecord/lib/active_record/persistence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def insert(attributes, returning: nil, unique_by: nil, record_timestamps: nil)
# ==== Options
#
# [:returning]
# (PostgreSQL and MariaDB only) An array of attributes to return for all successfully
# (PostgreSQL, SQLite3, and MariaDB only) An array of attributes to return for all successfully
# inserted records, which by default is the primary key.
# Pass <tt>returning: %w[ id name ]</tt> for both id and name
# or <tt>returning: false</tt> to omit the underlying <tt>RETURNING</tt> SQL
Expand Down Expand Up @@ -205,7 +205,7 @@ def insert!(attributes, returning: nil, record_timestamps: nil)
# ==== Options
#
# [:returning]
# (PostgreSQL and MariaDB only) An array of attributes to return for all successfully
# (PostgreSQL, SQLite3, and MariaDB only) An array of attributes to return for all successfully
# inserted records, which by default is the primary key.
# Pass <tt>returning: %w[ id name ]</tt> for both id and name
# or <tt>returning: false</tt> to omit the underlying <tt>RETURNING</tt> SQL
Expand Down Expand Up @@ -271,7 +271,7 @@ def upsert(attributes, **kwargs)
# ==== Options
#
# [:returning]
# (PostgreSQL and MariaDB only) An array of attributes to return for all successfully
# (PostgreSQL, SQLite3, and MariaDB only) An array of attributes to return for all successfully
# inserted records, which by default is the primary key.
# Pass <tt>returning: %w[ id name ]</tt> for both id and name
# or <tt>returning: false</tt> to omit the underlying <tt>RETURNING</tt> SQL
Expand Down

0 comments on commit 77800d1

Please sign in to comment.