Module: SqlserverInsert

Extended by:
ActiveSupport::Concern
Defined in:
app/models/concerns/sqlserver_insert.rb

Overview

This is hacky for the 2 following reasons:

  1. SQL Server adapter does not support upsert because SQL Server doesn’t seem to have a native upsert mechanism.

  2. insert_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”).