Merge pull request #1198 from sgmap/fix_pg_extension_migration

Fix pg extension creation in migration for #1097
This commit is contained in:
LeSim 2018-01-09 15:24:18 +01:00 committed by GitHub
commit 86a89808ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,9 @@
class EnableUnaccentPostgresqlExtension < ActiveRecord::Migration[5.0]
def up
execute 'CREATE EXTENSION unaccent;'
execute 'CREATE EXTENSION IF NOT EXISTS unaccent;'
end
def down
execute 'DROP EXTENSION unaccent;'
execute 'DROP EXTENSION IF EXISTS unaccent;'
end
end