Skip to content

NoMethodError: undefined method `add_column_for_on_duplicate_key_update' #6

@sachinswagh

Description

@sachinswagh

Versions:
activerecord-import: 1.0.4
activerecord-import-sqlserver: 0.1.1

User.import([User.new])
  Group Load (255.0ms)←[0m  SELECT [groups].* FROM [groups] WHERE [groups].[root] = 1
NoMethodError: undefined method `add_column_for_on_duplicate_key_update' for #<ActiveRecord::ConnectionAdapters::MSSQLAdapter:0x1f471d3>
from C:/dev/workspace/3RPM/local-third-party/jruby-dist-9.1.17.0-bin/jruby-9.1.17.0/lib/ruby/gems/shared/gems/activerecord-import-1.0.4/lib/activerecord-import/import.rb:1003:in `block in add_special_rails_stamps'

Observation:
There is breaking change since activerecord-import 1.0.0
https://github.com/zdennis/activerecord-import/blob/master/CHANGELOG.md#changes-in-100

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions