Skip to content

Conversation

@leo-tavares
Copy link

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