lv-books

第一种一对多:has_many:subject  belongs_to:user

创建关联子表数据为:user.subject.create(a: 100,b:200)

第二种一对一:has_one:subject  belongs_to:user

user.create_subject(a: 1, b:2......)

 

分类:

技术点:

相关文章:

  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2021-11-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2021-10-31
  • 2021-11-14
  • 2021-09-17
  • 2021-11-14
相关资源
相似解决方案