1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-25 08:09:38 +02:00

Prepare fixture data for account sync tests (#493)

* Rename account balance field for clarity

`original_balance` and `original_currency` may infer that these values are "original" to the account.  In reality, they represent the "current" balance and currency on the account.

* Prepare fixture data for account sync testing

* Update to new field

* Fix conflicts

* Remove local schema change
This commit is contained in:
Zach Gollwitzer 2024-02-27 12:43:49 -05:00 committed by GitHub
parent d3b326d273
commit 7d48c01833
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
37 changed files with 230 additions and 265 deletions

View file

@ -28,7 +28,7 @@ Currency.find_or_create_by(iso_code: "USD", name: "United States Dollar")
current_balance = 350000
account = Account.create_or_find_by(name: "Seed Property Account", accountable: Account::Property.new, family: family, original_balance: current_balance, original_currency: "USD")
account = Account.create_or_find_by(name: "Seed Property Account", accountable: Account::Property.new, family: family, balance: current_balance, currency: "USD")
puts "Account created: #{account.name}"
# Represent user-defined "Valuations" at various dates