Fix pg extension creation in migration for #1097
This commit is contained in:
parent
52df5d998a
commit
8d52f57e6a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue