Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix mismatched foreign key errors #1215

Merged
merged 3 commits into from
Aug 23, 2024
Merged

Fix mismatched foreign key errors #1215

merged 3 commits into from
Aug 23, 2024

Conversation

aidanharan
Copy link
Contributor

@aidanharan aidanharan commented Aug 23, 2024

The constructor for ActiveRecord::MismatchedForeignKey was being incorrectly called and was failing. This PR fixes the constructor. Also added the connection pool as a parameter when errors are being translated.

CI passing against Rails SHA 0b3320bcd5e705302b5707bcf27a80537b812c1f.

@aidanharan aidanharan changed the title Update sqlserver_adapter.rb Fix foreign key mismatch errors Aug 23, 2024
@aidanharan aidanharan changed the title Fix foreign key mismatch errors Fix mismatched foreign key errors Aug 23, 2024
@aidanharan aidanharan marked this pull request as ready for review August 23, 2024 15:16
@aidanharan aidanharan merged commit edddc2b into main Aug 23, 2024
0 of 5 checks passed
@aidanharan aidanharan deleted the foreign-key-exception branch August 23, 2024 15:16
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant