How is possible to SUM the value of array to my existing row field during on_duplicate_key_update?
For example: Model.import array, on_duplicate_key_update: [ :column_value + array_value]
Thank you.
How is possible to SUM the value of array to my existing row field during on_duplicate_key_update?
For example: Model.import array, on_duplicate_key_update: [ :column_value + array_value]
Thank you.
As mentioned in the README of activerecord-import
This works on MySQL
Change the format accordingly for PostgreSQL