📜  Rails 迁移中的索引名称 - Ruby 代码示例

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

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