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

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

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

  # rubocop:disable Migration/AddLimitToTextColumns
  # limit is added in 20210707173645_add_project_settings_previous_default_branch_text_limit
  def up
    with_lock_retries do
      add_column :project_settings, :previous_default_branch, :text
    end
  end
  # rubocop:enable Migration/AddLimitToTextColumns

  def down
    with_lock_retries do
      remove_column :project_settings, :previous_default_branch
    end
  end
end