creates postgres extensions if they don't exist
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class AddUnaccentExtension < ActiveRecord::Migration
|
||||
def change
|
||||
execute "create extension unaccent"
|
||||
execute "create extension unaccent if not exists unaccent"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class AddPgTrgmExtension < ActiveRecord::Migration
|
||||
def change
|
||||
execute "create extension pg_trgm"
|
||||
execute "create extension pg_trgm if not exists pg_trgm"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user