Files
fizzy/app/models/event.rb
T
Jose Farias c57f18c20c Materialize abstract thread
The domain language is clearer if we just persist a thread. Also rename some models so their purpose is clear.
2024-10-24 17:36:14 -06:00

12 lines
284 B
Ruby

class Event < ApplicationRecord
include Assignments, Stages
belongs_to :creator, class_name: "User"
belongs_to :bubble, touch: true
belongs_to :rollup, touch: true
has_one :account, through: :creator
scope :chronologically, -> { order created_at: :asc, id: :desc }
end