otwarchive-sunsetarchive/app/models/log_item.rb
2026-03-17 01:16:49 -04:00

17 lines
392 B
Ruby
Executable file

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