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 :D ) Thanks in advance, Gama Franco -- Posted via ruby-forum.com.
It''s a Rails thing, though there are ways of doing it if you really want to. Have a look at hittingthebuffers.com/2006/06/30 migrate-the-way/ for one way. Eifion On 10 Gorff 2006, at 22:00, Gama Franco wrote:> 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 :D ) > > Thanks in advance, > Gama Franco > > -- > Posted via ruby-forum.com. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > lists.rubyonrails.org/mailman/listinfo/rails