I have Post and Comment models, and now I want to create User model.
User has_many posts, and post belongs_to user. When I created Comment model with a generator, I used post:references, so Is it required for me to add user_id column to Post model manually?
I have Post and Comment models, and now I want to create User model.
Share
Yes.
and manually put *belongs_to user* in Post model.