Skip to content

enhancement: currency type are now decimal#11

Open
leo-tavares wants to merge 1 commit intobhrugen:masterfrom
leo-tavares:master
Open

enhancement: currency type are now decimal#11
leo-tavares wants to merge 1 commit intobhrugen:masterfrom
leo-tavares:master

Conversation

@leo-tavares
Copy link
Copy Markdown

tl;dr;

Replace currency type from double to decimal and add a new migration

Models affected

  • OrderDerail
  • OrderHeader
  • Product
  • ShoppingCart

Reason

On this doc decimal datatype are appropriate for financial calculations.

Even though it's an educational application, I believe it's highly valuable to utilize data types that are commonly used in production environments

Replace currency type from double to decimal and add a new migration

Models affected

- OrderDerail
- OrderHeader
- Product
- ShoppingCart=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant