diff options
Diffstat (limited to 'db/migrate/20190627051902_add_cluster_id_index_fk_to_deployments.rb')
-rw-r--r-- | db/migrate/20190627051902_add_cluster_id_index_fk_to_deployments.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/db/migrate/20190627051902_add_cluster_id_index_fk_to_deployments.rb b/db/migrate/20190627051902_add_cluster_id_index_fk_to_deployments.rb deleted file mode 100644 index f41e5c80269..00000000000 --- a/db/migrate/20190627051902_add_cluster_id_index_fk_to_deployments.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -class AddClusterIdIndexFkToDeployments < ActiveRecord::Migration[5.1] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - disable_ddl_transaction! - - def up - add_concurrent_index :deployments, :cluster_id - - add_concurrent_foreign_key :deployments, :clusters, column: :cluster_id, on_delete: :nullify - end - - def down - remove_foreign_key :deployments, :clusters - - remove_concurrent_index :deployments, :cluster_id - end -end |