Files
gitlab-ce/app/models/audit_events/project_audit_event.rb
2024-11-11 09:17:10 +00:00

16 lines
388 B
Ruby

# frozen_string_literal: true
module AuditEvents
class ProjectAuditEvent < ApplicationRecord
self.table_name = "project_audit_events"
include AuditEvents::CommonModel
validates :project_id, presence: true
scope :by_project, ->(project_id) { where(project_id: project_id) }
end
end
AuditEvents::ProjectAuditEvent.prepend_mod_with('AuditEvents::ProjectAuditEvent')