app/models/transactionable/transaction.rb in transactionable-0.2.0 vs app/models/transactionable/transaction.rb in transactionable-0.3.0
- old
+ new
@@ -1,9 +1,9 @@
module Transactionable
class Transaction < ActiveRecord::Base
has_one :remote_transaction, as: :local_entity, dependent: :destroy
belongs_to :transactionable, polymorphic: true
- belongs_to :transaction_loggable, polymorphic: true
+ has_many :transaction_logs
TRANSACTION_TYPES = [:hold, :credit, :debit, :refund, :reversal]
def self.create_from_remote(remote_trans)
transaction = create(