diff options
Diffstat (limited to 'db/migrate/20191112214305_add_indexes_for_projects_api_default_params.rb')
-rw-r--r-- | db/migrate/20191112214305_add_indexes_for_projects_api_default_params.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/db/migrate/20191112214305_add_indexes_for_projects_api_default_params.rb b/db/migrate/20191112214305_add_indexes_for_projects_api_default_params.rb deleted file mode 100644 index 3893c0422c7..00000000000 --- a/db/migrate/20191112214305_add_indexes_for_projects_api_default_params.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -class AddIndexesForProjectsApiDefaultParams < ActiveRecord::Migration[5.2] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - disable_ddl_transaction! - - def up - add_concurrent_index :projects, %i(visibility_level created_at id) - remove_concurrent_index_by_name :projects, 'index_projects_on_visibility_level' - end - - def down - add_concurrent_index :projects, :visibility_level - remove_concurrent_index :projects, %i(visibility_level created_at id) - end -end |