Files
fizzy/app/models/event.rb
T
2024-10-21 15:33:30 -06:00

13 lines
315 B
Ruby

class Event < ApplicationRecord
THREADABLE_ACTIONS = %w[ assigned boosted created staged unstaged ]
include Assignments, Stages
belongs_to :creator, class_name: "User"
belongs_to :bubble, touch: true
has_one :account, through: :creator
scope :threadable, -> { where action: THREADABLE_ACTIONS }
end