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

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

class AddDefaultValueToMergeRequestsAuthorApprovalOnProjects < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers

  def up
    with_lock_retries do
      change_column_default :projects, :merge_requests_author_approval, false
    end
  end

  def down
    with_lock_retries do
      change_column_default :projects, :merge_requests_author_approval, nil
    end
  end
end