Emi Matchu
aa3dc9549f
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!
5 lines
110 B
Ruby
5 lines
110 B
Ruby
class AddIndexOnNameToItems < ActiveRecord::Migration[7.1]
|
|
def change
|
|
add_index :items, :name
|
|
end
|
|
end
|