Commit 7ed64fd6 authored by 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
parents d330a6f2 86943ab2
# 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 @@ module EE
::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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment