summaryrefslogtreecommitdiff
path: root/db/migrate/20200406102111_add_index_to_deployments_where_cluster_id_is_not_null.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20200406102111_add_index_to_deployments_where_cluster_id_is_not_null.rb')
-rw-r--r--db/migrate/20200406102111_add_index_to_deployments_where_cluster_id_is_not_null.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/db/migrate/20200406102111_add_index_to_deployments_where_cluster_id_is_not_null.rb b/db/migrate/20200406102111_add_index_to_deployments_where_cluster_id_is_not_null.rb
deleted file mode 100644
index 67ffba6af5e..00000000000
--- a/db/migrate/20200406102111_add_index_to_deployments_where_cluster_id_is_not_null.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-# frozen_string_literal: true
-
-class AddIndexToDeploymentsWhereClusterIdIsNotNull < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- def up
- add_concurrent_index :deployments, :id, where: 'cluster_id IS NOT NULL', name: 'index_deployments_on_id_where_cluster_id_present'
- end
-
- def down
- remove_concurrent_index :deployments, :id, where: 'cluster_id IS NOT NULL', name: 'index_deployments_on_id_where_cluster_id_present'
- end
-end