impress/db/migrate/20240603181855_add_index_on_name_to_items.rb
Emi Matchu aa3dc9549f Add index to items.name database field
I am. Kinda surprised we didn't have this already, huh?? I guess in
most searches, the difference isn't very noticeable, because we don't
have a lot of item names to sort anyway? But we do this *so often* that
I think an index will certainly help! Let's add it!
2024-06-03 11:44:06 -07:00

5 lines
110 B
Ruby

class AddIndexOnNameToItems < ActiveRecord::Migration[7.1]
def change
add_index :items, :name
end
end