Index for multiple columns in ActiveRecord

后端 未结 0 352
不知归路
不知归路 2020-12-23 05:10

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

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


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