mirror of
https://github.com/we-promise/sure.git
synced 2026-04-20 04:24:06 +00:00
loan: Set the first valuation as the original principal. (#2088)
Fix: #1645.
This commit is contained in:
5
db/migrate/20250405210514_add_initial_balance_field.rb
Normal file
5
db/migrate/20250405210514_add_initial_balance_field.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddInitialBalanceField < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
add_column :loans, :initial_balance, :decimal, precision: 19, scale: 4
|
||||
end
|
||||
end
|
||||
1
db/schema.rb
generated
1
db/schema.rb
generated
@@ -378,6 +378,7 @@ ActiveRecord::Schema[7.2].define(version: 2025_04_11_140604) do
|
||||
t.string "rate_type"
|
||||
t.decimal "interest_rate", precision: 10, scale: 3
|
||||
t.integer "term_months"
|
||||
t.decimal "initial_balance", precision: 19, scale: 4
|
||||
end
|
||||
|
||||
create_table "merchants", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
||||
|
||||
Reference in New Issue
Block a user