gitlab-org--gitlab-foss/db/migrate/20201215084652_delete_mock_...

16 lines
285 B
Ruby

# frozen_string_literal: true
class DeleteMockDeploymentServiceRecords < ActiveRecord::Migration[6.0]
DOWNTIME = false
def up
if Rails.env.development?
execute("DELETE FROM services WHERE type = 'MockDeploymentService'")
end
end
def down
# no-op
end
end