fix trigram index on pools
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user