blob: ed14a1bce411ce46fc8c84ceedc941fef9f87301 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# frozen_string_literal: true
class ErrorTracking::ErrorEvent < ApplicationRecord
belongs_to :error, counter_cache: :events_count
validates :payload, json_schema: { filename: 'error_tracking_event_payload' }
validates :error, presence: true
validates :description, presence: true
validates :occurred_at, presence: true
end
|