More changes to Rails queries.