Yes, you can specify what the id is.

I suggest taking a look at http://api.rubyonrails.org/

Find on ActiveRecord::Base then within that, search for set_primary_key.

Basically this is what you want to set the primary key to invId for  
rails' purposes:

class Invoice < ActiveRecord::Base
	set_primary_key 'invId'
end

On 16/03/2006, at 9:58 AM, johntwinn / gmail.com wrote:

> Hi,
> My organisation has a relatively large legacy database that has a java
> application (using hibernate) to perform analytics on the data.
>
> We need to develop a CRUD application for it and I have been  
> looking at
> Ruby on Rails and scffolding to do it. It does not need to be fancy
> interface at all, just have an ability for CRUD.
>
> What I am concerning about is the Id field in RoR and having it change
> the datamodel. As other application are using it, is it possible to
> have RoR integrate directly with an exisitng data schema without
> changing it ? All the tutorials sort of do DB development when writing
> the web application.
>
> Thanks in advance, it means a lot of time would be saved!
>
>