class Partner < ApplicationRecord belongs_to :school, optional: true has_many :users has_many :partner_customers, dependent: :destroy has_many :customers, through: :partner_customers end