Re: [Rails] id upper bounds

2010-04-19 Thread mike
On Mon, Apr 19, 2010 at 5:48 AM, Eric B. wrote: > I am trying to find a nice easy lightweight way to > find the last 'id' in a mysql database > > That depends on the Datatype of your ID column in the table. It is a Mysql specific question. By rails default these are signed integer columns which c

Re: [Rails] id upper bounds

2010-04-19 Thread Franz Strebel
On Mon, Apr 19, 2010 at 5:48 AM, Eric B. wrote: > I am new to both ruby and rails and a recent project I am trying has got > me working on it. I am trying to find a nice easy lightweight way to > find the last 'id' in a mysql database so I can take it and use it as > the upper bound in a random nu

[Rails] id upper bounds

2010-04-18 Thread Eric B.
I am new to both ruby and rails and a recent project I am trying has got me working on it. I am trying to find a nice easy lightweight way to find the last 'id' in a mysql database so I can take it and use it as the upper bound in a random number generator. My problem is that I haven't found an ea