Skip to content

Commit

Permalink
Merge pull request rails#35903 from ryohashimoto/fix_upsert_method_co…
Browse files Browse the repository at this point in the history
…mment

[ci skip] Fix `#upsert` method comment
  • Loading branch information
prathamesh-sonpatki authored Apr 9, 2019
2 parents e485c14 + ab6da0c commit 496e8ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/persistence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def insert_all!(attributes, returning: nil)
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.
Expand Down

0 comments on commit 496e8ee

Please sign in to comment.