debian-mirror-gitlab/db/post_migrate/20200916081749_remove_cycle_analytics_total_stage_data.rb
2020-11-24 15:15:51 +05:30

15 lines
374 B
Ruby

# 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