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

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

class AddMaxIssueWeightToList < ActiveRecord::Migration[5.2]
  include Gitlab::Database::MigrationHelpers

  disable_ddl_transaction!

  DOWNTIME = false

  def up
    add_column_with_default :lists, :max_issue_weight, :integer, default: 0
  end

  def down
    remove_column :lists, :max_issue_weight
  end
end