Project

General

Profile

« Previous | Next » 

Revision 0fa5d146

Added by Dominic Cleal over 10 years ago

fixes #3752 - move data population from migrations into seed script

View differences:

db/migrate/20121026160433_add_localboot_template.rb
class AddLocalbootTemplate < ActiveRecord::Migration
class ConfigTemplate < ActiveRecord::Base
has_and_belongs_to_many :operatingsystems
end
def self.up
ConfigTemplate.create(
:name => "PXE Localboot Default",
:template_kind_id => TemplateKind.find_by_name("PXELinux"),
:operatingsystem_ids => [],
:template => File.read("#{Rails.root}/app/views/unattended/pxe_local.erb"))
end
def self.down

Also available in: Unified diff