From 77800d192032b6b2408e3e1889ea7b0ef6732cfe Mon Sep 17 00:00:00 2001 From: Stephen Margheim Date: Thu, 28 Dec 2023 09:46:52 +0100 Subject: [PATCH] Update documentation for ActiveRecord persistence methods that accept +returning+ option to note that this is available for SQLite3 adapter as well Co-authored-by: OuYangJinTing --- activerecord/lib/active_record/persistence.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb index 9e9219a46b8cd..f3204328c9b29 100644 --- a/activerecord/lib/active_record/persistence.rb +++ b/activerecord/lib/active_record/persistence.rb @@ -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 returning: %w[ id name ] for both id and name # or returning: false to omit the underlying RETURNING SQL @@ -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 returning: %w[ id name ] for both id and name # or returning: false to omit the underlying RETURNING SQL @@ -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 returning: %w[ id name ] for both id and name # or returning: false to omit the underlying RETURNING SQL