Merge pull request #1198 from sgmap/fix_pg_extension_migration
Fix pg extension creation in migration for #1097
This commit is contained in:
commit
86a89808ca
1 changed files with 2 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
||||||
class EnableUnaccentPostgresqlExtension < ActiveRecord::Migration[5.0]
|
class EnableUnaccentPostgresqlExtension < ActiveRecord::Migration[5.0]
|
||||||
def up
|
def up
|
||||||
execute 'CREATE EXTENSION unaccent;'
|
execute 'CREATE EXTENSION IF NOT EXISTS unaccent;'
|
||||||
end
|
end
|
||||||
|
|
||||||
def down
|
def down
|
||||||
execute 'DROP EXTENSION unaccent;'
|
execute 'DROP EXTENSION IF EXISTS unaccent;'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue