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

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

class AddDefaultForApprovalProjectRulesScanners < Gitlab::Database::Migration[2.0]
  def up
    change_column_default :approval_project_rules, :scanners, from: nil, to: []
  end

  def down
    change_column_default :approval_project_rules, :scanners, from: [], to: nil
  end
end