debian-mirror-gitlab/db/migrate/20200511130129_remove_deprecated_jenkins_service_records.rb
2020-05-24 23:13:21 +05:30

18 lines
316 B
Ruby

# 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