mirror of
https://github.com/usetrmnl/terminus.git
synced 2026-08-13 14:29:27 -07:00
16 lines
346 B
Ruby
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
|