I've just transitioned my app from MySQL to Postgres. Previously, a request for .all returned all the rows in id order. On Postgres the rows are returned out of order. Likewise,
Person.first
used to return the record with id 1, now it sometimes returns another record.
If I add an order clause like this:
Person.order("id").first
The query succeeds and returns the first row. Is this expected behaviour?