debian-mirror-gitlab/db/migrate/20201215084652_delete_mock_deployment_service_records.rb
2021-02-22 17:27:13 +05:30

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