Let’s say I have an
Order model which must have a status. This status could be
A) Some people would create a
Status model with an
id and a
description. Then the
Order would receive one constant for each seeded status and
status_id would be added to the database table.
B) Other people would just create a
status string attribute in
Order model and validate it across a list of valid values.
Which one do you think is the best way to solve this problem?
Do you know any articles discussing a similar problem?
(I could not find any, may be I am using the wrong search keywords).