debian-mirror-gitlab/db/post_migrate/20181022173835_enqueue_populate_cluster_kubernetes_namespace.rb
2019-01-03 12:48:30 +05:30

18 lines
399 B
Ruby

# frozen_string_literal: true
class EnqueuePopulateClusterKubernetesNamespace < ActiveRecord::Migration
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