[Rails] Re: myModel.all returns only 138 records

2013-07-08 Thread zip py
Colin Law wrote in post #1114588: > It is likely that he is getting all records back (as shown by #count) > and that 138 is the lowest id. Nope:) The reason I noticed is that when I did a find all I wasn't getting new records that had been added. However, if I get the new records by their id t

[Rails] myModel.all returns only 138 records

2013-07-05 Thread zip py
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 h