3scale/porta

View on GitHub
db/migrate/20081001105410_add_transaction_id_to_reports.rb

Summary

Maintainability
A
0 mins
Test Coverage
class AddTransactionIdToReports < ActiveRecord::Migration
  def self.up
    change_table :reports do |t|
      t.belongs_to :transaction
    end
  end

  def self.down
    change_table :reports do |t|
      t.remove_belongs_to :transaction
    end
  end
end