Sha256: 8e22efdfa15ffeb12140c0066b5b2f6d96781253614a5f1249c66bede0a35ffc

Contents?: true

Size: 472 Bytes

Versions: 5

Compression:

Stored size: 472 Bytes

Contents

class EditHostBootdiskTemplateMultinic < ActiveRecord::Migration
  def self.up
    ConfigTemplate.find_by_name('Boot disk gPXE - host').update_attribute(
      :template, File.read(File.join(Bootdisk::Engine.root, 'app', 'views', 'bootdisk', 'host_v2.erb')))
  end

  def self.down
    ConfigTemplate.find_by_name('Boot disk gPXE - host').update_attribute(
      :template, File.read(File.join(Bootdisk::Engine.root, 'app', 'views', 'bootdisk', 'host_v1.erb')))
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_bootdisk-1.2.3 db/migrate/20130915104500_edit_host_bootdisk_template_multinic.rb
foreman_bootdisk-1.2.2 db/migrate/20130915104500_edit_host_bootdisk_template_multinic.rb
foreman_bootdisk-1.2.1 db/migrate/20130915104500_edit_host_bootdisk_template_multinic.rb
foreman_bootdisk-1.2.0 db/migrate/20130915104500_edit_host_bootdisk_template_multinic.rb
foreman_bootdisk-1.1.0 db/migrate/20130915104500_edit_host_bootdisk_template_multinic.rb