Multiple has_many relationships to same model

后端 未结 4 2019
抹茶落季
抹茶落季 2021-02-04 09:07

I have a model User that can create Posts

User
 has_many :posts
Post
 belongs_to :user

However, I want to also allow users to save posts as boo

4条回答
提交回复
热议问题