Skip to content

Releases: jamis/bulk_insert

v1.1.1

20 Mar 20:02
Compare
Choose a tag to compare

Minor changes to support Rails 4.1.

v1.1.0

28 Oct 20:19
Compare
Choose a tag to compare

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!

v1.0.0

10 Oct 20:44
Compare
Choose a tag to compare

Initial release! Bulk inserts for ActiveRecord. Efficiently add multiple rows in a single database call!