foreman/db/migrate/20101213085232_add_grubby_template.rb @ 8a65dff7
c5f5a83f | Justin Sherrill | class AddGrubbyTemplate < ActiveRecord::Migration
|
|
def self.up
|
|||
ConfigTemplate.create(
|
|||
:name => "Grubby Default",
|
|||
:template_kind_id => TemplateKind.find_by_name("script").id,
|
|||
:operatingsystem_ids => Redhat.all.map(&:id),
|
|||
:template => File.read("#{RAILS_ROOT}/app/views/unattended/grubby.erb"))
|
|||
end
|
|||
def self.down
|
|||
end
|
|||
end
|