1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

fix db:rollback on create_unaccent_function

This commit is contained in:
Sylvain 2016-06-16 10:39:00 +02:00
parent 90f77ca929
commit 92e117d5bd

View File

@ -16,10 +16,10 @@ class CreateUnaccentFunction < ActiveRecord::Migration
end
def down
execute 'DROP EXTENSION unaccent;'
execute 'DROP EXTENSION pg_trgm;'
execute 'DROP FUNCTION f_unaccent(text);'
execute 'DROP INDEX profiles_lower_unaccent_first_name_trgm_idx;'
execute 'DROP INDEX profiles_lower_unaccent_last_name_trgm_idx;'
execute 'DROP FUNCTION f_unaccent(text);'
execute 'DROP EXTENSION pg_trgm;'
execute 'DROP EXTENSION unaccent;'
end
end