2018-11-13 07:27:31 +00:00
|
|
|
class AddIndexOnCiRunnersRunnerType < ActiveRecord::Migration[4.2]
|
2018-05-11 09:10:41 +00:00
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
|
|
|
add_concurrent_index :ci_runners, :runner_type
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2018-07-25 08:59:23 +00:00
|
|
|
# rubocop:disable Migration/RemoveIndex
|
2018-05-11 09:10:41 +00:00
|
|
|
remove_index :ci_runners, :runner_type
|
|
|
|
end
|
|
|
|
end
|