summaryrefslogtreecommitdiff
path: root/db/migrate/20210424115725_swap_partitioned_web_hook_logs.rb
blob: 47b2f81cfaed263d87a935fa76fe69e702ff2ea4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

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

  DOWNTIME = false

  def up
    replace_with_partitioned_table :web_hook_logs
  end

  def down
    rollback_replace_with_partitioned_table :web_hook_logs
  end
end