Last N records instead of first
samuelcouch opened this issue · 1 comments
samuelcouch commented
Is it possible to get a dump of the last latest records rather than the earliest?
rroblak commented
You can use the Seed Dump in the Rails console to do this. For example:
SeedDump.dump(User.order(created_at: :desc), file: 'db/seeds.rb')