Browse Source

update model coin_change

tags/v1
wyx 6 years ago
parent
commit
0ebcf3d7f7
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      app/models/coin_change.rb

+ 3
- 0
app/models/coin_change.rb View File

@@ -1,2 +1,5 @@
class CoinChange < ApplicationRecord
belongs_to :to_wallet, class_name: 'Wallet'
belongs_to :from_wallet, class_name: 'Wallet'
validates :amount, presence: true
end

Loading…
Cancel
Save