Re: [Rails] Make a column data unique for each user_id

2013-05-19 Thread Hassan Schroeder
On Sat, May 18, 2013 at 8:14 AM, Denny Mueller wrote: > This is my setup. I have a table user where all user with password and so on > are set. The customer table has some customer related data. The user_id is > the foreign key to relate the customers to the user. > > On of the column in the custo

[Rails] Make a column data unique for each user_id

2013-05-19 Thread Denny Mueller
This is my setup. I have a table user where all user with password and so on are set. The customer table has some customer related data. The user_id is the foreign key to relate the customers to the user. On of the column in the customer table is the customernumber. These numbers has to be uniq