2019-11-25 12:06:13 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddMaxIssueWeightToList < ActiveRecord::Migration[5.2]
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def up
|
2019-12-27 18:08:12 +00:00
|
|
|
add_column_with_default :lists, :max_issue_weight, :integer, default: 0 # rubocop:disable Migration/AddColumnWithDefault
|
2019-11-25 12:06:13 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :lists, :max_issue_weight
|
|
|
|
end
|
|
|
|
end
|