otwarchive-symphonyarchive/app/models/log_item.rb
2026-03-11 22:22:11 +00:00

17 lines
392 B
Ruby

class LogItem < ApplicationRecord
# Ignore the note_sanitizer_version field until it can be deleted.
self.ignored_columns = [:note_sanitizer_version]
belongs_to :user
belongs_to :admin
belongs_to :role
belongs_to :fnok_user, class_name: "User"
validates_presence_of :note
validates_presence_of :action
validates_length_of :note, maximum: ArchiveConfig.LOGNOTE_MAX
end