Sha256: fd266bb15331f9c4bdf7c83eccc12947510366a152c5d78b7fe76c1564cb4d77

Contents?: true

Size: 372 Bytes

Versions: 5

Compression:

Stored size: 372 Bytes

Contents

class CreateTemplateKinds < ActiveRecord::Migration
  def self.up
    create_table :template_kinds do |t|
      t.string :name

      t.timestamps
    end
    TemplateKind.reset_column_information

    %w[PXELinux gPXE provision finish script].each do |type|
      TemplateKind.create(:name => type)
    end
  end

  def self.down
    drop_table :template_kinds
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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