summaryrefslogtreecommitdiff
path: root/db/migrate/20200511130129_remove_deprecated_jenkins_service_records.rb
blob: 258142f950e095d2a50dfca87a5392ffcf3c214a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class RemoveDeprecatedJenkinsServiceRecords < 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