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.14.2 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.15.0 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.15.0.rc2 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.15.0.rc1 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.14.1 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.14.0 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.14.0.rc3 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.14.0.rc2 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.14.0.rc1.1 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.14.0.rc1 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.13.1 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.13.0 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.12.1 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.13.0.rc1 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.12.0 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.12.0.rc3 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.12.0.rc2 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.12.0.rc1 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.11.1 db/migrate/20161026191118_fix_invalid_interfaces.rb
katello-4.11.0 db/migrate/20161026191118_fix_invalid_interfaces.rb