Skip to content
代码片段 群组 项目
提交 7ed64fd6 编辑于 作者: Toon Claes's avatar Toon Claes
浏览文件

Merge branch 'default_cadences_to_non_automatic' into 'master'

Set default cadences automatic to false

See merge request gitlab-org/gitlab!56842
No related branches found
No related tags found
无相关合并请求
# frozen_string_literal: true
class SetIterationCadenceAutomaticToFalse < ActiveRecord::Migration[6.0]
DOWNTIME = false
def up
ActiveRecord::Base.connection.execute <<~SQL
UPDATE iterations_cadences
SET automatic = FALSE
WHERE iterations_cadences.automatic = TRUE
SQL
end
def down
# no-op
end
end
c954e1f2bfdfddc98030bfa0ab28f58a41921cbb5b81e088cde12637e3ae5a8f
\ No newline at end of file
......@@ -211,6 +211,7 @@ def find_or_create_default_cadence
::Iterations::Cadence.create_with(
title: cadence_title,
start_date: start_date,
automatic: false,
# set to 0, i.e. unspecified when creating default iterations as we do validate for presence.
iterations_in_advance: 0,
duration_in_weeks: 0
......
---
title: Set default cadences to non-automatic
merge_request: 56842
author:
type: fixed
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册