:limit => 10 fails in PostgreSQL

"No integer type has byte size 10. Use a numeric with precision 0
instead."