debian-mirror-gitlab/db/migrate/20220406121831_add_index_on_status_for_batched_background_migrations.rb
2022-06-21 17:19:12 +05:30

14 lines
364 B
Ruby

# 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