aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/insert_all.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add some whitespace for readability.Kasper Timm Hansen2019-03-061-0/+2
|
* Handle blank inserts like update_all; raise upfront.Kasper Timm Hansen2019-03-061-6/+4
|
* Add insert_all to ActiveRecord models (#35077)Bob Lail2019-03-051-0/+153
Adds a method to ActiveRecord allowing records to be inserted in bulk without instantiating ActiveRecord models. This method supports options for handling uniqueness violations by skipping duplicate records or overwriting them in an UPSERT operation. ActiveRecord already supports bulk-update and bulk-destroy actions that execute SQL UPDATE and DELETE commands directly. It also supports bulk-read actions through `pluck`. It makes sense for it also to support bulk-creation.