Hi

I have a Rail 4 with Postrgesql 9.1 setup that is working fine, apart
from I just ran into an issue.

Lets say I have a model called MyModel that has 150 records.

If in IRB I try:

> test = MyModel.all

Only 138 records are returned.

If I now try:

> lastRecord = test.last

The record I get has an ID of 138

And yet if I try:

> test.count

It returns the correct value - 50!

Any ideas on what is going on?

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/3f80a79c80a823ff4b39e73741f0e3b0%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to