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

20210317104032_set_iteration_cadence_automatic_to_false.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c151551ae640af3ad19128d3b2def723df8bd5ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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