View Single Post

   
  #5 (permalink)  
Old 02-28-2008, 11:29 AM
anne001
 
Posts: n/a
Default Re: how to add a primary key to a table

> Why do you need an autoincrement value? student_id/event_id already is
> unique; an autoincrement would be redundant.


because for a join table, ruby on rails expects a single
autoincremental key, it cannot work with multiple keys.

I have copied the old table into a new table without the key type, but
it would be nice to know how to change the original table directly

Reply With Quote