Switching to RoR with database


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


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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs