turniere-backend/app/models/tournament_transaction_log_...

11 lines
318 B
Ruby

# frozen_string_literal: true
class TournamentTransactionLogEntry < ApplicationRecord
belongs_to :tournament
belongs_to :user, optional: true
validates :sequence, presence: true, numericality: { only_integer: true, greater_than: 0 }
validates :action, presence: true
validates :message, presence: true
end