Project

General

Profile

Download (368 Bytes) Statistics
| Branch: | Tag: | Revision:
class RenameParentToAssociation < ActiveRecord::Migration[4.2]
def up
rename_column :audits, :auditable_parent_id, :association_id
rename_column :audits, :auditable_parent_type, :association_type
end

def down
rename_column :audits, :association_type, :auditable_parent_type
rename_column :audits, :association_id, :auditable_parent_id
end
end
(89-89/405)