Sf-60-Ruby-Cisco / BE-Ruby-Project

0 stars 0 forks source link

Create Repairs Table & Model #27

Closed apoltieva closed 2 years ago

apoltieva commented 2 years ago

As a user, I want to keep track of repairs that were made to my car.

Steps: 1) create repairs table in accordance with our db schema (the amount field should be not null). 2) the amount field should be in cents 3) create Rapair model 4) to the model, add active record validation that would validate numericality of the amount field

You don't need to add anything to UI, that will be a part of another task.

Stoyan83 commented 2 years ago

@apoltieva In this issue in the db there is a column invoice, does we have to implement real invoice class in a different table that we will make possible printing documents or it should be just a text column ? Ps. I think i got it actually there will be no column in the db. I'll just link active storage to the model. And there will be possible to upload a picture of your invoice