Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20200722202318_backfill_partitioned_audit_events.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 538aa94e22bdf997d2f41a8ce070ea5d9e19b50f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

class BackfillPartitionedAuditEvents < ActiveRecord::Migration[6.0]
  include Gitlab::Database::PartitioningMigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    return if ::Gitlab.com?

    enqueue_partitioning_data_migration :audit_events
  end

  def down
    return if ::Gitlab.com?

    cleanup_partitioning_data_migration :audit_events
  end
end