mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-28 01:29:39 +02:00
Update account.rb
This commit is contained in:
parent
dbc76c76ef
commit
dfb999b4c1
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
class Account < ApplicationRecord
|
class Account < ApplicationRecord
|
||||||
|
VALID_ACCOUNT_TYPES = %w[Investment Depository Credit Loan Property Vehicle OtherAsset OtherLiability].freeze
|
||||||
|
|
||||||
belongs_to :family
|
belongs_to :family
|
||||||
|
|
||||||
scope :depository, -> { where(type: 'Depository') }
|
scope :depository, -> { where(type: 'Depository') }
|
||||||
VALID_ACCOUNT_TYPES = %w[Investment Depository Credit Loan Property Vehicle OtherAsset OtherLiability].freeze
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue