Sha256: 5863eae1d1aea70d88f4e069d2672602f0eca96d8d18a7f74ec32f737bfdf1e5

Contents?: true

Size: 299 Bytes

Versions: 5

Compression:

Stored size: 299 Bytes

Contents

class AddAttributesToComputeResources < ActiveRecord::Migration
  def self.up
    add_column :compute_resources, :attrs, :text unless column_exists? :compute_resources, :attrs
  end

  def self.down
    remove_column :compute_resources, :attrs if column_exists? :compute_resources, :attrs
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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