2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# File 'lib/generators/cryptocoin_payable/templates/create_coin_payment_transactions.rb', line 2
def change
create_table :coin_payment_transactions do |t|
t.decimal :estimated_value, precision: 24, scale: 0
t.string :transaction_hash, index: { unique: true }
t.string :block_hash
t.datetime :block_time
t.datetime :estimated_time
t.integer :coin_payment_id
t.decimal :coin_conversion, precision: 24, scale: 0
t.integer :confirmations, default: 0
end
add_index :coin_payment_transactions, :coin_payment_id
end
|