diff options
Diffstat (limited to 'db/migrate/20180504195842_project_name_lower_index.rb')
-rw-r--r-- | db/migrate/20180504195842_project_name_lower_index.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/db/migrate/20180504195842_project_name_lower_index.rb b/db/migrate/20180504195842_project_name_lower_index.rb index 3fe90c3fbb1..fa74330d5d9 100644 --- a/db/migrate/20180504195842_project_name_lower_index.rb +++ b/db/migrate/20180504195842_project_name_lower_index.rb @@ -22,11 +22,7 @@ class ProjectNameLowerIndex < ActiveRecord::Migration[4.2] return unless Gitlab::Database.postgresql? disable_statement_timeout do - if supports_drop_index_concurrently? - execute "DROP INDEX CONCURRENTLY IF EXISTS #{INDEX_NAME}" - else - execute "DROP INDEX IF EXISTS #{INDEX_NAME}" - end + execute "DROP INDEX CONCURRENTLY IF EXISTS #{INDEX_NAME}" end end end |