Skip to content

v1.1.0

Choose a tag to compare

@jamis jamis released this 28 Oct 20:19
· 107 commits to master since this release

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!