Index for multiple columns in ActiveRecord

后端 未结 0 1181
误落风尘
误落风尘 2020-12-23 05:24

In ActiveRecord there are two ways to declare indexes for multiple columns:

add_index :classifications, [:species, :family, :trivial_names]
add_index :         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题