chore: init commit

in worker.../repo/GITFOLDER.zip is the .git folder.
This commit is contained in:
2026-08-11 14:44:09 -04:00
parent 0012380fd3
commit 392781f7aa
781 changed files with 65944 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
# frozen_string_literal: true
class PortfolioSnapshot < ApplicationRecord
belongs_to :portfolio
validates :date, presence: true
validates :worth_cents, presence: true, numericality: { greater_than_or_equal_to: 0 }
validates :portfolio_id, uniqueness: { scope: :date }
def current_worth
worth_cents / 100.0
end
end