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

Version Path
foreman_discovery-1.0.0 test/foreman_app/db/migrate/20110128130239_add_default_pxe_menu_template.rb
foreman_discovery-1.0.0.rc4 test/foreman_app/db/migrate/20110128130239_add_default_pxe_menu_template.rb
foreman_discovery-1.0.0.rc3 test/foreman_app/db/migrate/20110128130239_add_default_pxe_menu_template.rb
foreman_discovery-1.0.0.rc2 test/foreman_app/db/migrate/20110128130239_add_default_pxe_menu_template.rb
foreman_discovery-1.0.0.rc1 test/foreman_app/db/migrate/20110128130239_add_default_pxe_menu_template.rb