summaryrefslogtreecommitdiff
path: root/db/migrate/20191121161018_add_project_id_name_version_package_type_index_to_packages_packages.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20191121161018_add_project_id_name_version_package_type_index_to_packages_packages.rb')
-rw-r--r--db/migrate/20191121161018_add_project_id_name_version_package_type_index_to_packages_packages.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/db/migrate/20191121161018_add_project_id_name_version_package_type_index_to_packages_packages.rb b/db/migrate/20191121161018_add_project_id_name_version_package_type_index_to_packages_packages.rb
deleted file mode 100644
index 4a34b9e791e..00000000000
--- a/db/migrate/20191121161018_add_project_id_name_version_package_type_index_to_packages_packages.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-# frozen_string_literal: true
-
-class AddProjectIdNameVersionPackageTypeIndexToPackagesPackages < ActiveRecord::Migration[5.2]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
- INDEX_NAME = 'idx_packages_packages_on_project_id_name_version_package_type'
-
- disable_ddl_transaction!
-
- def up
- add_concurrent_index :packages_packages,
- [:project_id, :name, :version, :package_type],
- name: INDEX_NAME
- end
-
- def down
- remove_concurrent_index :packages_packages,
- [:project_id, :name, :version, :package_type],
- name: INDEX_NAME
- end
-end