Module: SqlserverUpsert
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/sqlserver_upsert.rb
Overview
This is hacky for the 2 following reasons:
-
SQL Server adapter does not support upsert because SQL Server doesn’t seem to have a native upsert mechanism.
-
upsert_all is used by solid_queue but it doesn’t pass a unique_by param and the primary key is not present in the record as well. The code expects us to guess the primary key is the first key in the record hash (“key”).