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

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

class RemoveIssuesIssueTypeColumn < Gitlab::Database::Migration[2.1]
  enable_lock_retries!

  def up
    remove_column :issues, :issue_type
  end

  def down
    add_column :issues, :issue_type, :smallint, default: 0, null: false
  end
end