Add fuzzy_search_users to Db trait, PostgresDb

This commit is contained in:
Nathan Sobo 2022-05-05 09:58:18 -06:00
parent 079e514379
commit 6050e0ead7
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,2 @@
CREATE EXTENSION IF NOT EXISTS pg_trgm;
CREATE INDEX trigram_index_users_on_github_login ON users USING GIN(github_login gin_trgm_ops);