diff --git a/db/migrate/20160613093842_create_unaccent_function.rb b/db/migrate/20160613093842_create_unaccent_function.rb index 2daefa2c4..2c6ed05dd 100644 --- a/db/migrate/20160613093842_create_unaccent_function.rb +++ b/db/migrate/20160613093842_create_unaccent_function.rb @@ -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