Sha256: 31e1bebf1eceb39865f81652e9cd1c141d2fb7c1e87a1069704adee248d833d4

Contents?: true

Size: 330 Bytes

Versions: 1

Compression:

Stored size: 330 Bytes

Contents

class PaymentTransaction < ActiveRecord::Base

  self.table_name = "payment_transactions"
  self.primary_key = 'id'

  belongs_to :agent, :inverse_of => :payment_transactions
  belongs_to :promotion_code, :inverse_of => :payment_transactions, foreign_key: "promotion_id"

  def describe_id
  	"PaymentTransaction ##{id}"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
civic311_test3-0.0.2 app/models/payment_transaction.rb