debian-mirror-gitlab/db/post_migrate/20200722202318_backfill_partitioned_audit_events.rb
2020-10-24 23:57:45 +05:30

21 lines
408 B
Ruby

# 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