debian-mirror-gitlab/db/post_migrate/20181022173835_enqueue_populate_cluster_kubernetes_namespace.rb
2018-12-13 13:39:08 +05:30

19 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