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

20210107194543_remove_alerts_service_records.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 51a2f96ac7feaaf3ba18a68100f60eef970f1cc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

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

  disable_ddl_transaction!

  class Service < ActiveRecord::Base
    self.table_name = 'services'
  end

  def up
    Service.delete_by(type: 'AlertsService')
  end

  def down
    # no-op
  end
end