Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F462207
base_file.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, May 18, 8:44 PM
Size
731 B
Mime Type
text/x-c++
Expires
Tue, May 20, 8:44 PM (23 h, 1 m)
Engine
blob
Format
Raw Data
Handle
220548
Attached To
rARCHIVING archiving
base_file.rb
View Options
# The BaseFiles table contains all the File references for a particular JobId that point
# to a Base file - i.e. they were previously saved and hence were not saved in the current
# JobId but in BaseJobId under FileId.
class
BaseFile
<
ActiveRecord
::
Base
establish_connection
BACULA_CONF
self
.
table_name
=
"
#{
connection_config
[
:database
]
}
.BaseFiles"
self
.
primary_key
=
:BaseId
alias_attribute
:id
,
:BaseId
alias_attribute
:base_job_id
,
:BaseJobId
alias_attribute
:job_id
,
:JobId
alias_attribute
:file_id
,
:FileId
alias_attribute
:file_index
,
:FileIndex
belongs_to
:base_job
,
foreign_key
:
:BaseJobId
,
class_name
:
:Job
belongs_to
:job
,
foreign_key
:
:JobId
belongs_to
:bacula_file
,
foreign_key
:
:FileId
end
Event Timeline
Log In to Comment