📜  rails 添加索引特定名称 - Ruby 代码示例

📅  最后修改于: 2022-03-11 15:04:47.880000             🧑  作者: Mango

代码示例1
add_index :studies,
  ["user_id", "university_id", "subject_name_id", "subject_type_id"], 
  unique: true,
  name: 'my_index'