We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e5c05f commit 615e4d1Copy full SHA for 615e4d1
app/models/transfer.rb
@@ -23,8 +23,8 @@ class Transfer < ApplicationRecord
23
after_create :make_movements
24
25
def make_movements
26
- movements.create(account: Account.find(source_id), amount: -amount.to_i)
27
- movements.create(account: Account.find(destination_id), amount: amount.to_i)
+ movements.create(account: Account.find(source_id), amount: -amount.to_i, created_at: created_at)
+ movements.create(account: Account.find(destination_id), amount: amount.to_i, created_at: created_at)
28
end
29
30
def source_id
0 commit comments