How does a many-to-many association work in rails application?

后端 未结 0 1838
深忆病人
深忆病人 2021-02-07 04:04

I am using devise for users in my Rails application. These are my models

class Post < ApplicationRecord
    has_many :user_posts
    has_many :users, through:          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题