A number of the Rails tests fail with TinyTds::Error: Ambiguous column name 'id' (or something similar). It appears that the tests were added to Rails 5.2 by: rails/rails#35360, and rails/rails#35441 to test a fix to an issue in the Rails code (rails/rails#35359).
I believe this issue is related to #713.
I'm happy to take a stab at a PR. I will report back if I get blocked on the PR.