I am deploying a rails app to heroku which uses PostgreSQL as its back-end. In my database migration I normally set the ID field for things likes reports etc to at least 100
Have no idea about rubies and railroads part, but query you're talking about is
ALTER SEQUENCE reports_something_seq RESTART 1000;
You will have to look up your table for the sequence name and postgresql documentation for general education regarding the matter ;-)