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

20200916081749_remove_cycle_analytics_total_stage_data.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 94c218c0c5701b7c9c57662ab12d2faf14de77d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

class RemoveCycleAnalyticsTotalStageData < ActiveRecord::Migration[6.0]
  DOWNTIME = false

  def up
    execute("DELETE FROM analytics_cycle_analytics_group_stages WHERE name='production'")
    execute("DELETE FROM analytics_cycle_analytics_project_stages WHERE name='production'")
  end

  def down
    # Migration is irreversible
  end
end