Project

General

Profile

Download (373 Bytes) Statistics
| Branch: | Tag: | Revision:
class RenameParentToAssociation < ActiveRecord::Migration
def self.up
rename_column :audits, :auditable_parent_id, :association_id
rename_column :audits, :auditable_parent_type, :association_type
end

def self.down
rename_column :audits, :association_type, :auditable_parent_type
rename_column :audits, :association_id, :auditable_parent_id
end
end
(90-90/122)