mirror of https://github.com/rails/rails
Fix upsert method comment
Because this method only updates or inserts a single record like `insert` method.
This commit is contained in:
parent
e485c14a3e
commit
ab6da0c4a8
|
@ -178,7 +178,7 @@ module ActiveRecord
|
||||||
InsertAll.new(self, attributes, on_duplicate: :raise, returning: returning).execute
|
InsertAll.new(self, attributes, on_duplicate: :raise, returning: returning).execute
|
||||||
end
|
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
|
# single SQL INSERT statement. It does not instantiate any models nor does
|
||||||
# it trigger Active Record callbacks or validations. Though passed values
|
# it trigger Active Record callbacks or validations. Though passed values
|
||||||
# go through Active Record's type casting and serialization.
|
# go through Active Record's type casting and serialization.
|
||||||
|
|
Loading…
Reference in New Issue