summaryrefslogtreecommitdiff
path: root/db/migrate/20200102170221_add_storage_version_index_to_projects.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20200102170221_add_storage_version_index_to_projects.rb')
-rw-r--r--db/migrate/20200102170221_add_storage_version_index_to_projects.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/db/migrate/20200102170221_add_storage_version_index_to_projects.rb b/db/migrate/20200102170221_add_storage_version_index_to_projects.rb
deleted file mode 100644
index 8965b5eedb9..00000000000
--- a/db/migrate/20200102170221_add_storage_version_index_to_projects.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-# frozen_string_literal: true
-
-class AddStorageVersionIndexToProjects < ActiveRecord::Migration[5.2]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- def up
- add_concurrent_index :projects, :id, where: 'storage_version < 2 or storage_version IS NULL', name: 'index_on_id_partial_with_legacy_storage'
- end
-
- def down
- remove_concurrent_index :projects, :id, where: 'storage_version < 2 or storage_version IS NULL', name: 'index_on_id_partial_with_legacy_storage'
- end
-end