tabletop-companion/app/models/text_field.rb

11 lines
215 B
Ruby
Raw Normal View History

2024-06-14 08:57:13 +00:00
# frozen_string_literal: true
class TextField < ApplicationRecord
belongs_to :character_sheet_section
has_rich_text :content
validates :name, presence: true,
length: { maximum: 100 }
end