Thanks all. Now I have the confidence to move forward.
On Feb 5, 7:55 am, Matt Jones wrote:
> On Feb 4, 10:06 pm,VincentP wrote:
>
>
>
>
>
> > In my app, each user may have one of the 30 predefined occupations.
> > Each occupation is a string of about 30 characters. Should I:
>
> > a. store
On Feb 4, 10:06 pm, Vincent P wrote:
> In my app, each user may have one of the 30 predefined occupations.
> Each occupation is a string of about 30 characters. Should I:
>
> a. store this list of occupations in a mysql table and make
> occupation_id a foreign key in the User model? OR
>
I agree, option A is better. Maintaining a hardcoded array of 30 cells
is cumbersome and less flexible.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyo
3 matches
Mail list logo