summaryrefslogtreecommitdiff
path: root/db/migrate/20180511090724_add_index_on_ci_runners_runner_type.rb
blob: 4913b8602c9f20f482394c359396c86be8482f19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class AddIndexOnCiRunnersRunnerType < ActiveRecord::Migration[4.2]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_concurrent_index :ci_runners, :runner_type
  end

  def down
    # rubocop:disable Migration/RemoveIndex
    remove_index :ci_runners, :runner_type
  end
end