9b4fec936e
- It does not make sense to scan "event summaries" for notifications. - Placing them at the message level prevents us from using the generic approach to extract the mentionable content
8 lines
239 B
Ruby
8 lines
239 B
Ruby
class Message < ApplicationRecord
|
|
belongs_to :card, touch: true
|
|
|
|
delegated_type :messageable, types: Messageable::TYPES, inverse_of: :message, dependent: :destroy
|
|
|
|
scope :chronologically, -> { order created_at: :asc, id: :desc }
|
|
end
|