activerecord-import

https://github.com/zdennis/activerecord-import

Ruby

A library for bulk insertion of data into your database using ActiveRecord.

ActiveRecord::Import::MysqlAdapter#sql_for_on_duplicate_key_update_as_array

No Docs, write some!

Source | Google | Stack overflow

Edit

git clone [email protected]:zdennis/activerecord-import.git

cd activerecord-import

open lib/activerecord-import/adapters/mysql_adapter.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ActiveRecord--Import--MysqlAdapter-sql_for_on_duplicate_key_update_as_array-for-pr


# Commit to git

git add lib/activerecord-import/adapters/mysql_adapter.rbgit commit -m "better docs for ActiveRecord::Import::MysqlAdapter#sql_for_on_duplicate_key_update_as_array"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-ActiveRecord--Import--MysqlAdapter-sql_for_on_duplicate_key_update_as_array-for-pr

hub pull-request


# Celebrate!