Compare commits
2 Commits
53df455d53
...
ba8d21eb7a
| Author | SHA1 | Date | |
|---|---|---|---|
| ba8d21eb7a | |||
| 5a5c316c14 |
@ -3,7 +3,7 @@ class AddSettledAtToZaps < ActiveRecord::Migration[7.1]
|
||||
add_column :zaps, :settled_at, :datetime, default: nil
|
||||
|
||||
Zap.where.not(receipt: nil).each do |zap|
|
||||
zap.update! settled_at: zap.receipt_event.created_at
|
||||
zap.update! settled_at: Time.at(zap.receipt_event.created_at).to_datetime
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user