mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
10 lines
259 B
Ruby
10 lines
259 B
Ruby
class Board < ApplicationRecord
|
|
include TenantOwnable
|
|
include Orderable
|
|
|
|
has_many :posts, dependent: :destroy
|
|
|
|
validates :name, presence: true, uniqueness: { scope: :tenant_id }
|
|
validates :description, length: { in: 0..1024 }, allow_nil: true
|
|
end
|