Sha256: 97c77c58a4942e787b12e02d0359441574274ad2e6b3c054aafd81125b0a1d43

Contents?: true

Size: 309 Bytes

Versions: 5

Compression:

Stored size: 309 Bytes

Contents

class AddSparcInfoToModel < ActiveRecord::Migration
  def self.up
    add_column :models, :vendor_class,   :string, :limit => 32
    add_column :models, :hardware_model, :string, :limit => 16
  end

  def self.down
    remove_column :models, :hardware_model
    remove_column :models, :vendor_class
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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