summaryrefslogtreecommitdiff
path: root/db/post_migrate/20180619121030_enqueue_delete_diff_files_workers.rb
blob: 9e96aaf50a09916c81164eca85fe63a701a96b33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class EnqueueDeleteDiffFilesWorkers < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false
  MIGRATION = 'DeleteDiffFiles'.freeze

  disable_ddl_transaction!

  def up
    BackgroundMigrationWorker.perform_async(MIGRATION)
  end

  def down
    # no-op
  end
end