tabletop-companion/app/models/character.rb

11 lines
232 B
Ruby

# 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