foreman/db/migrate/20130418134513_fix_sti_host_auditable_type.rb @ cc847871
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
|