gitlab-org--gitlab-foss/db/migrate/20170204181513_add_index_to...

12 lines
238 B
Ruby

class AddIndexToLabelsForTypeAndProject < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def change
add_concurrent_index :labels, [:type, :project_id]
end
end