Files
old-holivud2/db/migrate/20181123211217_install_pg_contrib_packages.rb

12 lines
295 B
Ruby
Raw Normal View History

2020-05-31 22:38:19 +02:00
class InstallPgContribPackages < ActiveRecord::Migration[5.2]
def up
execute "CREATE EXTENSION IF NOT EXISTS pg_trgm;"
execute "CREATE EXTENSION IF NOT EXISTS fuzzystrmatch;"
end
def down
execute "DROP EXTENSION pg_trgm;"
execute "DROP EXTENSION fuzzystrmatch;"
end
end