2019-08-01 02:20:35 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class DeleteKubernetesServices < ActiveRecord::Migration[5.2]
|
|
|
|
DOWNTIME = false
|
|
|
|
|
2021-05-12 08:10:24 -04:00
|
|
|
class Service < ActiveRecord::Base
|
|
|
|
self.table_name = 'services'
|
|
|
|
self.inheritance_column = :_type_disabled
|
|
|
|
end
|
|
|
|
|
2019-08-01 02:20:35 -04:00
|
|
|
def up
|
|
|
|
Service.where(type: "KubernetesService").delete_all
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
# no-op
|
|
|
|
end
|
|
|
|
end
|