Sha256: 691bbefd5a85f4caa5bade26a2637fddff36a1cc4c4bd2895e9f008617db7dd4
Contents?: true
Size: 645 Bytes
Versions: 8
Compression:
Stored size: 645 Bytes
Contents
class CreateMoneytreeTransactions < ActiveRecord::Migration[6.0] def change create_table :moneytree_transactions do |t| t.decimal :amount, null: false, default: 0 t.decimal :app_fee_amount, null: false, default: 0 t.integer :status, null: false, default: 0 t.string :type, null: false, default: 'Moneytree::Payment' t.references :order, polymorphic: true, null: false t.references :payment_gateway, null: false t.references :payment, foreign_key: { to_table: :moneytree_transactions } t.text :psp_error t.text :details t.text :refund_reason t.timestamps end end end
Version data entries
8 entries across 8 versions & 1 rubygems