rails-sqlserver / activerecord-sqlserver-adapter

SQL Server Adapter For Rails
MIT License
972 stars 558 forks source link

Fix mismatched foreign key errors #1215

Closed aidanharan closed 1 month ago

aidanharan commented 1 month ago

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.