tabletop-companion/app/models/game_system.rb

6 lines
157 B
Ruby

class GameSystem < ApplicationRecord
validates :name, presence: true,
uniqueness: true,
length: { maximum: 100 }
end