18 lines
623 B
Ruby
18 lines
623 B
Ruby
class Installtemplate
|
|
include Mongoid::Document
|
|
include Mongoid::Timestamps
|
|
field :name, type: String
|
|
field :ostype, type: String
|
|
field :osversion, type: String
|
|
field :repository, type: String
|
|
field :nfsroot, type: String
|
|
field :kernel, type: String
|
|
field :initrd, type: String
|
|
field :rootfile, type: String
|
|
has_many :hostreferences, class_name: "Host", inverse_of: :installtemplate
|
|
belongs_to :boot , class_name: "Script", inverse_of: :bootref
|
|
belongs_to :install , class_name: "Script", inverse_of: :installref
|
|
belongs_to :postinstall , class_name: "Script", inverse_of: :postsinstallref
|
|
|
|
end
|