tabletop-companion/app/models/character.rb

11 lines
232 B
Ruby
Raw Normal View History

2024-06-05 15:00:02 +00:00
# frozen_string_literal: true
class Character < ApplicationRecord
belongs_to :table, optional: true
belongs_to :game_system
belongs_to :user
validates :name, presence: true,
length: { maximum: 200 }
end