Sha256: fa2e62e14bece13553dd7bad682062de7f22fa34616fe0d9cdd169e0c9461112

Contents?: true

Size: 329 Bytes

Versions: 5

Compression:

Stored size: 329 Bytes

Contents

class AddFromAndToRangesToSubnets < ActiveRecord::Migration
  def self.up
    add_column :subnets, :from, :string
    add_column :subnets, :to, :string
    remove_column :subnets, :ranges
  end

  def self.down
    add_column :subnets, :ranges, :string
    remove_column :subnets, :to
    remove_column :subnets, :from
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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