subimage: it would not be in 2 places, the country list (or whatever it
might be) would go in a table OR directly in the model RB file as an
array. One advantage to having outside of the database could be to limit
JOINS in SELECTs. Also, I have no end users, I am the end user myself
Ed: while a lookup table that stores all kinds of stuff like that could
increase performance I don’t find it very “elegant”.
What do you guys do you for data that belongs to another object, like
for example if you have a “users” table and need to store some simple
user types like admin, guest etc. Do you store it as a table in the
database, ie “types”, or just as an array hard coded in the user.rb
file? (in both solutions there would be a “type_id” in the “users”
Anyone have any more thoughts on this topic?