Initial commit
This commit is contained in:
11
db/migrate/20181123211217_install_pg_contrib_packages.rb
Normal file
11
db/migrate/20181123211217_install_pg_contrib_packages.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in New Issue
Block a user