Create a table per user

not sure what to look at…
how would i go about creating tables within the application? i have my
users and say, for each one i want to create another table(s) when they
register, that would be customized to them and accessible only by them?

miki

On 27 Mar., 07:01, Silviu M. [email protected]
wrote:

not sure what to look at…
how would i go about creating tables within the application? i have my
users and say, for each one i want to create another table(s) when they
register, that would be customized to them and accessible only by them?

That kind of thing should never ever be done. Imagine when you reach,
maybe, a thousand users, you’ll have at least thousand tables! Then
imagine when you need to make a change in the users’ tables! I
strongly recommend to make use of Rails’ has_many and belongs_to
associations to keep track of which records belongs to which users,
instead.


Best regards,
David K.
http://twitter.com/rubyguy