Project

General

Profile

Download (489 Bytes) Statistics
| Branch: | Tag: | Revision:
class UpdateAuditsTable < ActiveRecord::Migration
def self.up
add_column :audits, :comment, :string
add_column :audits, :auditable_parent_id, :integer
add_column :audits, :auditable_parent_type, :string
add_index :audits, [:auditable_parent_id, :auditable_parent_type], :name => 'auditable_parent_index'
end

def self.down
remove_column :audits, :comment
remove_column :audits, :auditable_parent_id
remove_column :audits, :auditable_parent_type
end
end
(82-82/83)