Sha256: 711cffc429ca288fe0bda66a550cf5e78468c3949f007ef2b9915371626f2d0b

Contents?: true

Size: 290 Bytes

Versions: 5

Compression:

Stored size: 290 Bytes

Contents

class FixAuditableType < ActiveRecord::Migration
  def self.up
    execute "UPDATE audits SET auditable_type='Host' WHERE auditable_type='Puppet::Rails::Host'"
  end

  def self.down
    execute "UPDATE audits SET auditable_type='Puppet::Rails::Host' WHERE auditable_type='Host'"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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