tabletop-companion/app/models/template.rb

13 lines
353 B
Ruby
Raw Normal View History

2024-06-29 08:16:37 +00:00
# frozen_string_literal: true
class Template < ApplicationRecord
belongs_to :game_system
validates :name, presence: true,
uniqueness: { scope: :game_system_id },
length: { maximum: 200 }
validates :content, presence: true
validates :klass, presence: true,
length: { maximum: 200 }
end