2019-10-12 21:52:04 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class DeleteKubernetesServices < ActiveRecord::Migration[5.2]
|
|
|
|
DOWNTIME = false
|
|
|
|
|
2021-06-08 01:23:25 +05:30
|
|
|
class Service < ActiveRecord::Base
|
|
|
|
self.table_name = 'services'
|
|
|
|
self.inheritance_column = :_type_disabled
|
|
|
|
end
|
|
|
|
|
2019-10-12 21:52:04 +05:30
|
|
|
def up
|
|
|
|
Service.where(type: "KubernetesService").delete_all
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
# no-op
|
|
|
|
end
|
|
|
|
end
|