fix trigram index on pools
This commit is contained in:
10
db/migrate/20170414233426_fix_trigram_index_on_pools.rb
Normal file
10
db/migrate/20170414233426_fix_trigram_index_on_pools.rb
Normal 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
|
||||||
Reference in New Issue
Block a user