diff options
author | Ryo Hashimoto <ryohashimoto@gmail.com> | 2019-04-09 12:06:09 +0900 |
---|---|---|
committer | Ryo Hashimoto <ryohashimoto@gmail.com> | 2019-04-09 12:06:25 +0900 |
commit | ab6da0c4a88480d932051f0a2f6dc0c96593d948 (patch) | |
tree | 731de078d063e6fbc2596d03e3f23d7649cf336b | |
parent | e485c14a3ee29ee486324a96545abf964d428101 (diff) | |
download | rails-ab6da0c4a88480d932051f0a2f6dc0c96593d948.tar.gz rails-ab6da0c4a88480d932051f0a2f6dc0c96593d948.tar.bz2 rails-ab6da0c4a88480d932051f0a2f6dc0c96593d948.zip |
Fix upsert method comment
Because this method only updates or inserts a single record
like `insert` method.
-rw-r--r-- | activerecord/lib/active_record/persistence.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb index bf2f61737b..e05490753f 100644 --- a/activerecord/lib/active_record/persistence.rb +++ b/activerecord/lib/active_record/persistence.rb @@ -178,7 +178,7 @@ module ActiveRecord InsertAll.new(self, attributes, on_duplicate: :raise, returning: returning).execute end - # Updates or inserts (upserts) multiple records into the database in a + # Updates or inserts (upserts) a single record into the database in a # single SQL INSERT statement. It does not instantiate any models nor does # it trigger Active Record callbacks or validations. Though passed values # go through Active Record's type casting and serialization. |