[Rails] Re: model with no primary key

2011-03-18 Thread tonypm
On Mar 17, 11:04 am, Frederick Cheung frederick.che...@gmail.com wrote: Could you just tell rails that categories_id is the primary key? If it's unique then that should be good enough (you'll probably have to be a little careful when creating rows in this table though, as you'll need to set

[Rails] Re: model with no primary key

2011-03-17 Thread Frederick Cheung
On Mar 17, 9:37 am, tonypm tonypmar...@hotmail.com wrote: Hi, I have looked around quite a bit, and haven't found any workable solution to this. I am accessing an external/remote database from my rails app, in order to update a categories table. I cannot change the table structure of