Migration and foreign keys

Hi,

I’m using the ‘rake db_schema_dump’ command to clone the structure of
the developement database into the test database.

Unfortunatelly, the schema.rb file doesn’t contain any information about
the foreign keys of the tables. For this reason all the test that
concern about the relations are not working has suposed.

Is this a limitation of Rails or am I doing something wrong? (I bet on
the second option :smiley: )

Thanks in advance,
Gama F.

It’s a Rails thing, though there are ways of doing it if you really
want to. Have a look at http://hittingthebuffers.com/2006/06/30/
migrate-the-way/ for one way.

Eifion

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