Hey guys,
here is something I encounter very often in my project, and I still don't know what the real "right" way to solve it: I have a set of custom values. May it be the countries for a country select box, a set of games and their shortcuts on a gaming site etc. Those values are only used very rarely (at the registration form, in the info panel of games) and there is no real logic behind them; they are just there to be fetched and rarely to be updated (which would be done via console). I see 2 ways of doing this: 1. You create an array, make it a constant, and change it in the code somewhere when there are changes to be made 2. You create a separate model for the data (migration, model file, table) and insert/destroy records when you need to.
What is the right one? How hard does the extra model go on the database? And more importantly, what is the appropriate style of coding this?
Thanks, J.S.