mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
feat: add crypto account type to demo data (#555)
* feat: add crypto account type to demo data * fix: set currency to BTC, revert schema migration change and fix tests * fix: update dates in time_series tests
This commit is contained in:
parent
f904d9d062
commit
49d1fe0e11
8 changed files with 55 additions and 4 deletions
3
app/models/account/crypto.rb
Normal file
3
app/models/account/crypto.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
class Account::Crypto < ApplicationRecord
|
||||
include Accountable
|
||||
end
|
|
@ -1,7 +1,7 @@
|
|||
module Accountable
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
ASSET_TYPES = %w[ Account::Depository Account::Investment Account::OtherAsset Account::Property Account::Vehicle ]
|
||||
ASSET_TYPES = %w[ Account::Depository Account::Investment Account::Crypto Account::OtherAsset Account::Property Account::Vehicle ]
|
||||
LIABILITY_TYPES = %w[ Account::Credit Account::Loan Account::OtherLiability ]
|
||||
TYPES = ASSET_TYPES + LIABILITY_TYPES
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue