I need to store user specific settings in database.
Which is a better approach

storing them in one row with each column for each setting
Table columns in these case would be
 id, user_id, setting 1, setting 2, setting 3 etc

 or

storing them in many rows , with setting name and value in each row
Table columns in these case would be
id, user_id, setting_name, setting_value


Regards,
Pankaj
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to