debian-mirror-gitlab/db/migrate/20210616154808_remove_ci_build_protected_index.rb
2021-09-30 23:02:18 +05:30

19 lines
409 B
Ruby

# frozen_string_literal: true
class RemoveCiBuildProtectedIndex < ActiveRecord::Migration[6.1]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
INDEX_NAME = 'index_ci_builds_on_protected'
disable_ddl_transaction!
def up
remove_concurrent_index :ci_builds, :protected, name: INDEX_NAME
end
def down
add_concurrent_index :ci_builds, :protected, name: INDEX_NAME
end
end