As with the previous checks on case sensitivity this only affects new users, and changes to names of existing users.
7 lines
245 B
Ruby
7 lines
245 B
Ruby
class AddCanonicalUserIndex < ActiveRecord::Migration[7.1]
|
|
disable_ddl_transaction!
|
|
|
|
def change
|
|
add_index :users, "LOWER(NORMALIZE(display_name, NFKC))", :name => "users_display_name_canonical_idx", :algorithm => :concurrently
|
|
end
|
|
end
|