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
Error with composite PK #830
Comments
I am also facing same issue any solution you found on this |
@kunalvashistordway Importing with columns and hashes works. Unfortunately, our codebase needs to use models, because we manually invoke active record callbacks. But if you don't I guess you consider switching to hashes. |
Support for Rails 7.1 built-in composite primary keys needs to be added. |
Our platform's major upgrade is currently blocked due to this bug. Is there any plan for fix? |
Contributions from the community are accepted, but I don't expect this to be added any time soon. I would suggest migrating to the built-in ActiveRecord upsert if you are using composite primary keys. |
Opened PR #837 |
Resolved by #837. Thanks @fragkakis 🎉 🙌 |
I have trouble importing data to a table with a composite PK. Here is the scenario that can reproduce this in Postgres:
The error I am getting is:
Please note that the import is successful if I do it using a hash, like so:
The text was updated successfully, but these errors were encountered: