gitlab-org--gitlab-foss/db/post_migrate/20200511130130_ensure_depre...

18 lines
323 B
Ruby

# 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