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

Version Path
moneytree-rails-0.1.11 db/migrate/20201008161617_create_moneytree_transactions.rb
moneytree-rails-0.1.10 db/migrate/20201008161617_create_moneytree_transactions.rb
moneytree-rails-0.1.9 db/migrate/20201008161617_create_moneytree_transactions.rb
moneytree-rails-0.1.8 db/migrate/20201008161617_create_moneytree_transactions.rb
moneytree-rails-0.1.7 db/migrate/20201008161617_create_moneytree_transactions.rb
moneytree-rails-0.1.6 db/migrate/20201008161617_create_moneytree_transactions.rb
moneytree-rails-0.1.5 db/migrate/20201008161617_create_moneytree_transactions.rb
moneytree-rails-0.1.4 db/migrate/20201008161617_create_moneytree_transactions.rb