mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
9 lines
218 B
Ruby
9 lines
218 B
Ruby
class Board < ApplicationRecord
|
|
include Orderable
|
|
|
|
has_many :posts, dependent: :destroy
|
|
|
|
validates :name, presence: true, uniqueness: true
|
|
validates :description, length: { in: 0..1024 }, allow_nil: true
|
|
end
|