Sha256: 8cfaf7b34442168140b2dd04afc023b06538a1a3dff8794e901a60cd6d2330b3

Contents?: true

Size: 274 Bytes

Versions: 136

Compression:

Stored size: 274 Bytes

Contents

class FixInvalidInterfaces < ActiveRecord::Migration[4.2]
  class FakeNic < ApplicationRecord
    self.table_name = 'nics'

    def type
      Nic::Base
    end
  end

  def up
    FakeNic.where(:ip => "Unknown").each do |nic|
      nic.update(:ip => nil)
    end
  end
end

Version data entries

136 entries across 136 versions & 1 rubygems

Version Path
katello-4.11.0.rc2 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.11.0.rc1 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.10.0 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.9.2 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.10.0.rc2 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.10.0.rc1 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.8.4 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.9.1 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.8.3 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.9.0 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.7.6 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.8.2 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.9.0.rc2 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.9.0.rc1 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.8.1 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.7.5 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.8.0 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.8.0.rc2 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.7.4 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.8.0.rc1 db/migrate/20161026191118_fix_invalid_interfaces.rb