Closed vpatel90 closed 7 years ago
Week has_one Expenditure this relationship is very limiting We need to create a new expense record that belongs to a week everytime payment is entered
Week has_one Expenditure
Expense will have a total and a manner column similar to Meal with a validation for "groceries and restaurants"
total
manner
Write a reversible migration script - that will create once 'groceries' and one 'restaurants' expense object for every expenditure object
Week has_one Expenditure
this relationship is very limiting We need to create a new expense record that belongs to a week everytime payment is enteredExpense will have a
total
and amanner
column similar to Meal with a validation for "groceries and restaurants"