debian-mirror-gitlab/db/migrate/20200605160836_add_index_on_storage_size_and_project_id_to_project_statistics.rb
2020-08-09 17:44:08 +05:30

18 lines
405 B
Ruby

# frozen_string_literal: true
class AddIndexOnStorageSizeAndProjectIdToProjectStatistics < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_concurrent_index :project_statistics, [:storage_size, :project_id]
end
def down
remove_concurrent_index :project_statistics, [:storage_size, :project_id]
end
end