On 22 October 2011 09:05, Eugene B. <[email protected]> wrote:
> I have change type of ID: bigint -> to serial and all work now.
> But my legacy DB has id as bigint.
> How can I invoke sequence from code?

I don't know the full answer, but I think you may have to use
set_primary_key in your model.  Google for rails legacy database and
you may find some helpful links.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to