summaryrefslogtreecommitdiff
path: root/db/migrate/20200311094020_add_index_on_id_and_status_to_deployments.rb
blob: 77c746ed88b549a0e83f7505bae01dd56455719b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class AddIndexOnIdAndStatusToDeployments < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_concurrent_index :deployments, [:id, :status]
  end

  def down
    remove_concurrent_index :deployments, [:id, :status]
  end
end