98bb435f42
Migrations shouldn't fail RuboCop checks - especially lint checks, such as the nested method check. To avoid changing code in existing migrations, add the magic comment to the top of each of them to skip that file.
8 lines
225 B
Ruby
8 lines
225 B
Ruby
# rubocop:disable all
|
|
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
|