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: