summaryrefslogtreecommitdiff
path: root/db/migrate/20220406121831_add_index_on_status_for_batched_background_migrations.rb
blob: bc3b9125b4bb5c71890b609e8aad7ca5833d1bb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class AddIndexOnStatusForBatchedBackgroundMigrations < Gitlab::Database::Migration[1.0]
  disable_ddl_transaction!

  def up
    add_concurrent_index :batched_background_migrations, :status
  end

  def down
    remove_concurrent_index_by_name :batched_background_migrations, :index_batched_background_migrations_on_status
  end
end