20 lines
523 B
Ruby
20 lines
523 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class RemoveDebianProjectArchitecturesDistributionIdIndex < ActiveRecord::Migration[6.0]
|
||
|
include Gitlab::Database::MigrationHelpers
|
||
|
|
||
|
DOWNTIME = false
|
||
|
|
||
|
INDEX_NAME = 'idx_pkgs_deb_proj_architectures_on_distribution_id'
|
||
|
|
||
|
disable_ddl_transaction!
|
||
|
|
||
|
def up
|
||
|
remove_concurrent_index :packages_debian_project_architectures, :distribution_id, name: INDEX_NAME
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
add_concurrent_index :packages_debian_project_architectures, :distribution_id, name: INDEX_NAME
|
||
|
end
|
||
|
end
|