Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add some whitespace for readability. | Kasper Timm Hansen | 2019-03-06 | 1 | -0/+2 |
| | |||||
* | Handle blank inserts like update_all; raise upfront. | Kasper Timm Hansen | 2019-03-06 | 1 | -6/+4 |
| | |||||
* | Add insert_all to ActiveRecord models (#35077) | Bob Lail | 2019-03-05 | 1 | -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. |