2018-11-06 12:23:00 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-11-13 07:27:31 +00:00
|
|
|
class EnqueuePopulateClusterKubernetesNamespace < ActiveRecord::Migration[4.2]
|
2018-11-06 12:23:00 +00:00
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
MIGRATION = 'PopulateClusterKubernetesNamespaceTable'.freeze
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
|
|
|
BackgroundMigrationWorker.perform_async(MIGRATION)
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
Clusters::KubernetesNamespace.delete_all
|
|
|
|
end
|
|
|
|
end
|