-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate Check Error When Using import!
Method on Rails 7.2.0.beta2
#840
Comments
It seems that @compiled=
#<ActiveSupport::Callbacks::Filters::Before:0x00007fb51ac6b980
@filter=
#<ActiveRecord::Validations::UniquenessValidator:0x00007fb51ac646f8
@attributes=[:isbn_13],
@klass=
Book(id: integer, isbn_13: string, title: string, created_at: datetime, updated_at: datetime),
@options={}>,
@halted_lambda=
#<Proc:0x00007fb5255f75a8 /usr/local/bundle/gems/activesupport-7.2.0.beta2/lib/active_support/callbacks.rb:665>,
@name=:validate,
@user_callback=
#<Proc:0x00007fb51ac6b9d0 /usr/local/bundle/gems/activesupport-7.2.0.beta2/lib/active_support/callbacks.rb:384 (lambda)>,
@user_conditions=[]>, It appears that |
Thanks for reporting this @KojiTsuchiya-Ruby! |
Resolved by #845. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Summary:
Using the
import!
method to update existing data now triggers a duplicate check error.Environment:
activerecord-import: 1.7.0
rails: 7.2.0.beta2
ruby: 3.1.6
Details:
import!
method is equipped with the on_duplicate_key_update option.The text was updated successfully, but these errors were encountered: