rails and oracle sequences

C

Carlos Diaz

------=_Part_2072_9213332.1126036178317
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi,

I'm trying to build an application on rails using an oracle 9i database on=
=20
the backend. everything was going fine until I ran into a problem with rail=
s=20
trying to use the rails_sequence for all the ids (primary keys) in my=20
database. This seems to be a known issue and there appears to be a fix for=
=20
it. It's all documented here:

http://dev.rubyonrails.com/ticket/1798

The problem I'm running into is that I do not know how to apply this patch=
=20
to my current installation. I tried doing a 'gem update rails', 'gem update=
=20
activerecord' and 'gem update' but this does not seem to solve the problem.=
=20
I think I need to actually apply the patch to my installation.=20

Can someone help me understand how to do this? I can't seem to find any doc=
s=20
descibing how/what to patch (do I patch OCI or activerecord?). Or if you ca=
n=20
at least point me in the right direction :)=20

Thanks,
Carlos

------=_Part_2072_9213332.1126036178317--
 
M

Michael Schoen

To apply the patch, you'll need to be running on edge rails, meaning
you've got a local working copy of the repository. You can checkout the
repository with the command:

svn co http://dev.rubyonrails.org/svn/rails/trunk

This will create a "trunk" dir that contains the head of the svn
repository. Create a symlink to this dir called 'rails' in your
APPROOT/vendor dir, and then apply the patch using the 'patch' command.

Alternatively (and easier), just use "beta gems" -- the Rails team
periodically releases a pre-release gem version, and the last 2 beta
gems have included this patch.

You can install the beta gems with the command:

gem update --remote --source gems.rubyonrails.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,898
Members
47,439
Latest member
shasuze

Latest Threads

Top