Merge pull request #3407 from evazion/feat-tag-autocorrect

Fix #3406: Autocorrect typos during autocomplete
This commit is contained in:
Albert Yi
2017-12-13 14:33:04 -08:00
committed by GitHub
4 changed files with 51 additions and 7 deletions

View File

@@ -0,0 +1,9 @@
class AddTrigramIndexToTags < ActiveRecord::Migration
def up
execute "create index index_tags_on_name_trgm on tags using gin (name gin_trgm_ops)"
end
def down
execute "drop index index_tags_on_name_trgm"
end
end