update model coin_change
This commit is contained in:
parent
0f69255422
commit
0ebcf3d7f7
|
@ -1,2 +1,5 @@
|
||||||
class CoinChange < ApplicationRecord
|
class CoinChange < ApplicationRecord
|
||||||
|
belongs_to :to_wallet, class_name: 'Wallet'
|
||||||
|
belongs_to :from_wallet, class_name: 'Wallet'
|
||||||
|
validates :amount, presence: true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue