Postgres & Foxy Fixtures

I love foxy fixtures!!!

However, when I rake my fixtures into my db the ID’s start out at
2million.

Has any experienced this issue and have a work-around?

Thanks,
Bill

Why do you need a work-around? Two million is a perfectly valid
integer.

Hi Bill,

On Dec 24, 2007 8:04 AM, Bill Davenport
[email protected] wrote:

However, when I rake my fixtures into my db the ID’s start out at
2million.

The fixture ID’s are generated using the fixture label, so they’re not
sequential, and generally pretty large. This shouldn’t cause any
problems.

~ j.

Thanks

-bill

That does make sense John. Jumping from 2mil. to 1 trillion made me
question what was going on.

I’ve also been used to visually comparing id’s and single digits are
much easier.

Thanks again,
bill

I’m getting problem with that. When rails create sequences in test
database, it defines the start value with big numbers. I do know why
rails does that.

Bill Davenport wrote:

I love foxy fixtures!!!

However, when I rake my fixtures into my db the ID’s start out at
2million.

Has any experienced this issue and have a work-around?

Thanks,
Bill

On Wed, May 28, 2008 at 7:52 AM, Davi Nascimento
[email protected] wrote:

However, when I rake my fixtures into my db the ID’s start out at
2million.

Has any experienced this issue and have a work-around?

Thanks,
Bill

That’s the way foxy fixtures works, it uses a hash computed from the
record name for the id. That’s how it can generate inter-table
references.


Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/