Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20210804150624_remove_cluster_image_scanning_from_approval_project_rules.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a2736a563c76de87fe3db38de24b6d7905bf8735 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class RemoveClusterImageScanningFromApprovalProjectRules < ActiveRecord::Migration[6.1]
  def up
    execute("update approval_project_rules set scanners = array_remove(scanners, 'cluster_image_scanning') where scanners @> '{cluster_image_scanning}'")
  end

  def down
    # nothing to do here
  end
end