Fix pg extension creation in migration for #1097

This commit is contained in:
Simon Lehericey 2018-01-09 15:20:04 +01:00
parent 52df5d998a
commit 8d52f57e6a

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