1 2 3 4 5
class Agent < ApplicationRecord has_many :agencies has_many :members, through: :agencies, source: :user has_many :resources end