Fetch 6 records from a table randomly

i have one table “documents” and i want to fetch 6 records randomly is
there any solution reply me


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs