fix trigram index on pools

This commit is contained in:
r888888888
2017-04-14 16:34:51 -07:00
parent 97da8f8647
commit 6d693799a0

View File

@@ -0,0 +1,10 @@
class FixTrigramIndexOnPools < ActiveRecord::Migration
def up
execute "drop index index_pools_on_name_trgm"
execute "create index index_pools_on_name_trgm on pools using gin (lower(name) gin_trgm_ops)"
end
def down
execute "drop index index_pools_on_name_trgm"
end
end