# Switching to RoR with database

**URL:** <https://www.ruby-forum.com/t/switching-to-ror-with-database/168054>\
**Category:** Rails\
**Created:** [May 15, 2009, 11:03am UTC](https://www.ruby-forum.com/t/switching-to-ror-with-database/168054 "2009-05-15T11:03:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shinkaku](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/4da419/32.png) [@shinkaku](https://www.ruby-forum.com/u/shinkaku)\
**Post date:** [May 15, 2009, 11:03am UTC](https://www.ruby-forum.com/t/switching-to-ror-with-database/168054/1 "2009-05-15T11:03:17Z")

</div>

Hi,

I’m trying to figure out how to switch to ruby on rails, but I want to  
keep the tables and i do not care about the values inside the tables,  
just the schema.

I have export my mysql database to a .sql file but i guess I do not need  
to do that.

I just want to tell rails that  
i have 3 tables i.e table\_one table\_two and table\_three  
and foreign\_id\_name in table\_one points to table\_two’s id

any help is appreciated

thank you

---

<div class="post-metadata">

**Author:** ![shinkaku](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/4da419/32.png) [@shinkaku](https://www.ruby-forum.com/u/shinkaku)\
**Post date:** [May 15, 2009, 11:09am UTC](https://www.ruby-forum.com/t/switching-to-ror-with-database/168054/2 "2009-05-15T11:09:13Z")

</div>

Hi,

never mind, i ran db:migrate and the schema got created  
this is magic!!
