2019-05-03 06:17:27 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-31 12:06:56 +08:00
|
|
|
class EnableTrigramSupport < ActiveRecord::Migration[4.2]
|
2013-03-15 02:45:29 +08:00
|
|
|
def up
|
|
|
|
execute "CREATE EXTENSION IF NOT EXISTS pg_trgm"
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
execute "DROP EXTENSION pg_trgm"
|
|
|
|
end
|
|
|
|
end
|