15 lines
426 B
Ruby
15 lines
426 B
Ruby
class InstallPgPackages < ActiveRecord::Migration
|
|
def up
|
|
execute "CREATE EXTENSION IF NOT EXISTS pg_trgm"
|
|
execute "CREATE EXTENSION IF NOT EXISTS fuzzystrmatch"
|
|
execute "CREATE EXTENSION IF NOT EXISTS unaccent"
|
|
|
|
end
|
|
|
|
def down
|
|
execute "DROP EXTENSION IF EXISTS pg_trgm"
|
|
execute "DROP EXTENSION IF EXISTS fuzzystrmatch"
|
|
execute "DROP EXTENSION IF EXISTS unaccent"
|
|
end
|
|
end
|