class Character < ApplicationRecord belongs_to :user belongs_to :activity, optional: true validates :name, presence: true end