aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/insert_all_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add some whitespace for readability.Kasper Timm Hansen2019-03-061-0/+12
|
* Fix test case name after file extractionKasper Timm Hansen2019-03-061-1/+1
| | | | | Although the old name had a certain persistence, this ain't the kind of file we're in now.
* Handle blank inserts like update_all; raise upfront.Kasper Timm Hansen2019-03-061-1/+1
|
* Add insert_all to ActiveRecord models (#35077)Bob Lail2019-03-051-0/+127
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.