Files
terminus/app/relations/user.rb
T
Brooke Kuhlmann 1dac477251 Added user relation belongs to status association
Necessary to associate users with corresponding status.

Milestone: minor
2025-09-30 17:16:22 -06:00

16 lines
346 B
Ruby

# frozen_string_literal: true
module Terminus
module Relations
# The user relation.
class User < DB::Relation
schema :user, infer: true do
associations do
belongs_to :user_status, relation: :user_status, as: :status
has_many :memberships, relation: :membership
end
end
end
end
end