1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-05 13:35:21 +02:00

Fix bug: Loan % doesn't allow exact rate (#1492)

* Fix bug: Loan % doesn't allow exact rate

Fixes #1487

Change the step of the interest rate field to 0.005.

It's unlikely that we'll see interest rates in smaller increments.

* step 0.005

* migration for loan interest rates precision

* add new line
This commit is contained in:
Arsen Shkrumelyak 2024-11-22 20:28:10 +00:00 committed by GitHub
parent 571fc4db75
commit 1c2f075053
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 4 deletions

View file

@ -0,0 +1,5 @@
class ChangeLoanInterestRatePrecision < ActiveRecord::Migration[7.2]
def change
change_column :loans, :interest_rate, :decimal, precision: 10, scale: 3
end
end