Releases: jamis/bulk_insert
Releases · jamis/bulk_insert
v1.1.1
v1.1.0
In response to popular demand, you can now simply pass an array of rows to insert, to bulk_insert
:
Book.bulk_insert values: array_of_book_attrs
Additionally, the following enhancements are new:
default_bulk_columns
method is added to return what columns are referenced by default [Mehdi FARSI]- Omitted values are now auto-populated with any database defaults that have been defined.
- Created_at/updated_at timestamps will be identical for all records inserted together.
As ever, install and enjoy responsibly with RubyGems:
$ gem install bulk_insert
Cheers!