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

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

class RemoveMergeRequestDiffCommitColumns < Gitlab::Database::Migration[1.0]
  enable_lock_retries!

  COLUMNS = %i[author_name author_email committer_name committer_email].freeze

  def change
    COLUMNS.each do |column|
      remove_column(:merge_request_diff_commits, column, :text)
    end
  end
end