debian-mirror-gitlab/db/post_migrate/20200511130130_ensure_deprecated_jenkins_service_records_removal.rb
2020-05-24 23:13:21 +05:30

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