Class: Payment

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
AASM
Defined in:
app/models/payment.rb

Overview

Table Definition ###########################

create_table :payments do |t|

   t.column :success,             :boolean
   t.column :reference_number,    :string
   t.column :financial_txn_id,    :integer
   t.column :current_state,       :string
   t.column :authorization_code,  :string
   t.string :external_identifier

   t.timestamps
 end

 add_index :payments, :financial_txn_id