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

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

class RemoveNotNullConstraintForSecurityScanSucceeded < Gitlab::Database::Migration[1.0]
  def up
    change_column_null :analytics_devops_adoption_snapshots, :security_scan_succeeded, true
  end

  def down
    # There may now be nulls in the table, so we cannot re-add the constraint here.
  end
end