# Routes in a migration?

**URL:** <https://www.ruby-forum.com/t/routes-in-a-migration/155445>\
**Category:** Rails\
**Created:** [December 11, 2008, 8:35pm UTC](https://www.ruby-forum.com/t/routes-in-a-migration/155445 "2008-12-11T20:35:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwalsh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/91b2a8/32.png) [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Post date:** [December 11, 2008, 8:35pm UTC](https://www.ruby-forum.com/t/routes-in-a-migration/155445/1 "2008-12-11T20:35:53Z")

</div>

So this is a strange request, but I’m writing a large migration  
inserting a lot of content into my db. Some of the entries have a link  
to another section of the site in the text column. I’d like to use the  
routes that I have set up, but they aren’t available.

Any ideas how to make the routes available in the migration?
