Sha256: fd26dc87e8e03a1274212a344a6e0b5e48822f3ed8315fd8dcab3c19c6b39f2b

Contents?: true

Size: 210 Bytes

Versions: 5

Compression:

Stored size: 210 Bytes

Contents

class FixStiHostAuditableType < ActiveRecord::Migration
  def up
    execute "UPDATE audits SET auditable_type='Host' WHERE auditable_type='Host::Base'"
  end

  def down
    # no way to reverse this
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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