Skip to content

Conversation

@aidanharan
Copy link
Contributor

@aidanharan aidanharan commented Apr 26, 2021

The UniquenessValidationTest#test_validate_uniqueness_by_default_database_collation test only assumed case insensitive collation for MySQL (see https://github.com/rails/rails/blob/0beae875eea321143ec4208df93e43fa3ebf39be/activerecord/test/cases/validations/uniqueness_validation_test.rb#L349). By default, the SQL Server tests also use a case-insensitive collation. In this MR I have coerced the Rails suite test and added a slightly different test for SQL Server.

Previously this test was called test_validate_case_sensitive_uniqueness_by_default and was renamed to test_validate_uniqueness_by_default_database_collation in rails/rails@3daf2c7. We used to coerce test_validate_case_sensitive_uniqueness_by_default but that coercion was removed in https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/887/files#diff-3f00d8ac91cdd36f48a1f18eb12bf3dc8d3cb7e48f7d21fc891ea63dfb6fd9ecL28

@aidanharan aidanharan marked this pull request as ready for review April 26, 2021 13:32
@wpolicarpo wpolicarpo merged commit 8a061a1 into rails-sqlserver:main Apr 27, 2021
lavika pushed a commit to lavika/activerecord-sqlserver-adapter that referenced this pull request Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants