activerecord-import 0.2.6 and ar-extensions 0.9.4 06 Apr 2011
It was asked on stackoverflow this morning how to use the :synchronize option with import to synchronize based a field(s) besides the primary key field.

activerecord-import 0.2.6 (for Rails 3) and ar-extensions 0.9.4 (for Rails 2) have been released which provide the additional option synchronize-keys:

Liquid error: No such file or directory - posix_spawnp

This can be useful if you want to reload a bunch a of new records you’re importing:

Liquid error: No such file or directory - posix_spawnp

The keys you use to synchronize should be unique.

Install

Liquid error: No such file or directory - posix_spawnp


blog comments powered by Disqus