class Payment::BraintreeTransaction < ActiveRecord::Base
  belongs_to :page
  belongs_to :payment_method, class_name: 'Payment::BraintreePaymentMethod'
  belongs_to :customer,       class_name: 'Payment::BraintreeCustomer'
  enum status: [:success, :failure]
end

class Payment::BraintreeTransaction < ActiveRecord::Base
  belongs_to :page
  belongs_to :payment_method, class_name: 'Payment::BraintreePaymentMethod'
  belongs_to :customer,       class_name: 'Payment::BraintreeCustomer', primary_key: 'customer_id'
  enum status: [:success, :failure]
end

Make transaction look for customer by customer_id.
Make transaction look for customer by customer_id.
