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

Account:: namespace simplifications and cleanup (#2110)

* Flatten Holding model

* Flatten balance model

* Entries domain renames

* Fix valuations reference

* Fix trades stream

* Fix brakeman warnings

* Fix tests

* Replace existing entryable type references in DB
This commit is contained in:
Zach Gollwitzer 2025-04-14 11:40:34 -04:00 committed by GitHub
parent f181ba941f
commit e657c40d19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
172 changed files with 1297 additions and 1258 deletions

View file

@ -4,7 +4,7 @@ valuation:
amount: 4995
currency: USD
account: depository
entryable_type: Account::Valuation
entryable_type: Valuation
entryable: one
trade:
@ -13,7 +13,7 @@ trade:
amount: 2140 # 10 shares * $214 per share
currency: USD
account: investment
entryable_type: Account::Trade
entryable_type: Trade
entryable: one
transaction:
@ -22,7 +22,7 @@ transaction:
amount: 10
currency: USD
account: depository
entryable_type: Account::Transaction
entryable_type: Transaction
entryable: one
transfer_out:
@ -31,7 +31,7 @@ transfer_out:
amount: 100
currency: USD
account: depository
entryable_type: Account::Transaction
entryable_type: Transaction
entryable: transfer_out
transfer_in:
@ -40,5 +40,5 @@ transfer_in:
amount: -100
currency: USD
account: credit_card
entryable_type: Account::Transaction
entryable_type: Transaction
entryable: transfer_in

View file

@ -1,10 +1,10 @@
one:
tag: one
taggable: one
taggable_type: Account::Transaction
taggable_type: Transaction
two:
tag: two
taggable: one
taggable_type: Account::Transaction
taggable_type: Transaction