]> git.openstreetmap.org Git - rails.git/commit
Require user names to be unique after unicode normalisation
authorTom Hughes <tom@compton.nu>
Wed, 13 Dec 2023 20:53:38 +0000 (20:53 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 13 Dec 2023 22:27:36 +0000 (22:27 +0000)
commitc12f8959dd2059b4ea9d45caf716923d7589cbb0
treee7b191fb9a8bac727f711f6fe78202c9d5709af7
parent75042a04a1e2dec2c821de14237a6b4d5a95382a
Require user names to be unique after unicode normalisation

As with the previous checks on case sensitivity this only affects
new users, and changes to names of existing users.
app/models/user.rb
app/validators/normalized_uniqueness_validator.rb [new file with mode: 0644]
db/migrate/20231213182102_add_canonical_user_index.rb [new file with mode: 0644]
db/structure.sql
test/models/user_test.rb