Sha256: cf2cd0da0a0443f74a638cfa2cf9b865e6d4063cf73c35d0a92636bd7e94b7bf
Contents?: true
Size: 476 Bytes
Versions: 5
Compression:
Stored size: 476 Bytes
Contents
class AddDefaultPxeMenuTemplate < ActiveRecord::Migration class ConfigTemplate < ActiveRecord::Base has_and_belongs_to_many :operatingsystems end def self.up ConfigTemplate.create( :name => "PXE Default File", :template_kind_id => TemplateKind.find_by_name("PXELinux"), :operatingsystem_ids => [], :template => File.read("#{Rails.root}/app/views/unattended/pxe_default.erb")) end def self.down end end
Version data entries
5 entries across 5 versions & 1 rubygems