Project

General

Profile

Download (264 Bytes) Statistics
| Branch: | Tag: | Revision:
class FixHostAuditableType < ActiveRecord::Migration
def up
Audit.where(:auditable_type => 'Host').update_all(:auditable_type => 'Host::Base')
end

def down
Audit.where(:auditable_type => 'Host::Base').update_all(:auditable_type => 'Host')
end
end
(378-378/378)