Page MenuHomeGRNET

log.rb
No OneTemporary

File Metadata

Created
Sun, May 18, 1:11 AM
# Bacula Log table.
#
# The Log table contains a log of all Job output.
class Log < ActiveRecord::Base
self.table_name = :Log
self.primary_key = :LogId
alias_attribute :log_id, :LogId
alias_attribute :job_id, :JobId
alias_attribute :time, :Time
alias_attribute :log_text, :LogText
belongs_to :job, foreign_key: :JobId
paginates_per 20
def time_formatted
if time
I18n.l(time, format: :long)
end
end
end

Event Timeline