With :limit in query, I will get first N records. What is the easiest way to get last N records?
:limit
If you need to set some ordering on results then use:
Model.order('name desc').limit(n) # n= number
if you do not need any ordering, and just need records saved in the table then use:
Model.last(n) # n= any number