Class: CreateBitcoinPaymentTransactions

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/bitcoin_payable/templates/create_bitcoin_payment_transactions.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/generators/bitcoin_payable/templates/create_bitcoin_payment_transactions.rb', line 2

def change
  create_table :bitcoin_payment_transactions do |t|
    t.integer :estimated_value
    t.string :transaction_hash
    t.string :block_hash
    t.datetime :block_time
    t.datetime :estimated_time
    t.integer :bitcoin_payment_id
    t.integer :btc_conversion
  end

  add_index :bitcoin_payment_transactions, :bitcoin_payment_id
end