Replace collection with board in the code, tests green

This commit is contained in:
Jorge Manrubia
2025-11-05 13:39:58 +01:00
parent 03a345609e
commit 39ec6cf062
146 changed files with 316 additions and 264 deletions
+14
View File
@@ -0,0 +1,14 @@
class Board < ApplicationRecord
include AutoClosing, Accessible, Broadcastable, Cards, Entropic, Filterable, Publishable, Triageable
belongs_to :creator, class_name: "User", default: -> { Current.user }
has_rich_text :public_description
has_many :tags, -> { distinct }, through: :cards
has_many :events
has_many :webhooks, dependent: :destroy
scope :alphabetically, -> { order("lower(name)") }
scope :ordered_by_recently_accessed, -> { merge(Access.ordered_by_recently_accessed) }
end