summaryrefslogtreecommitdiff
path: root/db/migrate/20201215084652_delete_mock_deployment_service_records.rb
blob: 6c601a5e852a249b1d2378d89d7c6cf9893170f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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