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

20210608110752_change_column_null_test_report_requirement.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 44a614a34ce0ce6db3433a4110fda22a772fb677 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class ChangeColumnNullTestReportRequirement < ActiveRecord::Migration[6.1]
  include Gitlab::Database::MigrationHelpers

  TARGET_TABLE = :requirements_management_test_reports

  def up
    with_lock_retries do
      change_column_null TARGET_TABLE, :requirement_id, true
    end
  end

  def down
    # no-op as it's difficult to revert
  end
end