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

Add loan and credit card views (#1268)

* Add loan and credit card views

* Lint fix

* Clean up overview card markup

* Lint fix

* Test fix
This commit is contained in:
Zach Gollwitzer 2024-10-08 17:16:37 -04:00 committed by GitHub
parent 9263dd3bbe
commit fd941d714d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 564 additions and 102 deletions

View file

@ -0,0 +1,17 @@
class AddDebtAccountViews < ActiveRecord::Migration[7.2]
def change
change_table :loans do |t|
t.string :rate_type
t.decimal :interest_rate, precision: 10, scale: 2
t.integer :term_months
end
change_table :credit_cards do |t|
t.decimal :available_credit, precision: 10, scale: 2
t.decimal :minimum_payment, precision: 10, scale: 2
t.decimal :apr, precision: 10, scale: 2
t.date :expiration_date
t.decimal :annual_fee, precision: 10, scale: 2
end
end
end