Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F905163
location.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
Fri, Aug 29, 9:39 PM
Size
507 B
Mime Type
text/x-c++
Expires
Sun, Aug 31, 9:39 PM (9 h, 37 m)
Engine
blob
Format
Raw Data
Handle
252518
Attached To
rARCHIVING archiving
location.rb
View Options
# Bacula Location table.
#
# The Location table defines where a Volume is physically.
class
Location
<
ActiveRecord
::
Base
establish_connection
BACULA_CONF
self
.
table_name
=
"
#{
connection_config
[
:database
]
}
.Location"
self
.
primary_key
=
:LocationId
alias_attribute
:location_id
,
:LocationId
alias_attribute
:location
,
:Location
alias_attribute
:cost
,
:Cost
alias_attribute
:enabled
,
:Enabled
has_many
:media
,
foreign_key
:
:LocationId
has_many
:location_logs
,
foreign_key
:
:LocationId
end
Event Timeline
Log In to Comment