Sha256: d143862ca008aebbb9dfa38b4e610902c0ebc46345b81aab70498b46280c25fb

Contents?: true

Size: 264 Bytes

Versions: 5

Compression:

Stored size: 264 Bytes

Contents

class AddPriorityToParameter < ActiveRecord::Migration
  def self.up
    add_column :parameters, :priority, :integer
    Parameter.reset_column_information
    Parameter.reassign_priorities
  end

  def self.down
    remove_column :parameters, :priority
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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