mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 07:39:39 +02:00
Scaffold out the UI for individual account page (#461)
* Add `AccountBalance` table for account views * Scaffold out account UI * Add D3 line chart scaffolding * Style fixes
This commit is contained in:
parent
0490fda465
commit
3ec9c9b56b
47 changed files with 724 additions and 12 deletions
14
db/migrate/20240212150110_create_account_balances.rb
Normal file
14
db/migrate/20240212150110_create_account_balances.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
class CreateAccountBalances < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
create_table :account_balances, id: :uuid do |t|
|
||||
t.references :account, null: false, type: :uuid, foreign_key: { on_delete: :cascade }
|
||||
t.date :date, null: false
|
||||
t.decimal :balance, precision: 19, scale: 4, null: false
|
||||
t.string :currency, default: "USD", null: false
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :account_balances, [ :account_id, :date ], unique: true
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue