gitlab-org--gitlab-foss/db/post_migrate/20210317104032_set_iteratio...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
341 B
Ruby
Raw Normal View History

# 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