debian-mirror-gitlab/db/migrate/20201112215132_swap_partitioned_audit_events.rb
2021-03-08 18:12:59 +05:30

16 lines
317 B
Ruby

# frozen_string_literal: true
class SwapPartitionedAuditEvents < ActiveRecord::Migration[6.0]
include Gitlab::Database::PartitioningMigrationHelpers
DOWNTIME = false
def up
replace_with_partitioned_table :audit_events
end
def down
rollback_replace_with_partitioned_table :audit_events
end
end