Forum: Ruby on Rails switching to RoR with database

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
57014aac041f53d610b8609247d07385?d=identicon&s=25 Anthony Ward (ant284)
on 2009-05-15 11:03
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
57014aac041f53d610b8609247d07385?d=identicon&s=25 Anthony Ward (ant284)
on 2009-05-15 11:09
Hi,

never mind, i ran db:migrate and the schema got created
this is magic!!
This topic is locked and can not be replied to.