summaryrefslogtreecommitdiff
path: root/db/post_migrate/20200511130130_ensure_deprecated_jenkins_service_records_removal.rb
blob: 4c1f29f8e4799df1ba6a09c3868ea78017a58739 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

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

  def up
    execute <<~SQL.strip
      DELETE FROM services WHERE type = 'JenkinsDeprecatedService';
    SQL
  end

  def down
    # no-op

    # The records were removed by `up`
  end
end