gitlab-org--gitlab-foss/db/migrate/20140730111702_add_index_to_labels.rb
Dmitriy Zaporozhets cc33168459
Add indicies to labels
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-07-30 14:25:27 +03:00

7 lines
203 B
Ruby

class AddIndexToLabels < ActiveRecord::Migration
def change
add_index "labels", :project_id
add_index "label_links", :label_id
add_index "label_links", [:target_id, :target_type]
end
end