I would have posted this as a ticket on Trac, but that doesn't seem to
be working. Anyways, I think I know the solution, just wanted to run
it by the smart people (Scott).
Executing 'rake racing_on_rails:bootstrap' seems to be loading up db/
development_structure.sql, but there is a problem with the 'create
table' commands. They seem to be in alphabetical order, but there are
foreign key references that do not match that order. The MySQL error
bombs out the rake task.
I imported the file directly using my MySQL GUI of choice, Sequel Pro
(
http://code.google.com/p/sequel-pro/). It gives the error code as
150, which fingered the foreign key constraint. However, several
tables were imported anyways. This gave me a hint that as long as the
table referenced exists already, the import could work.
So I went with the brute force approach -- I imported the
development_structure.sql FOUR TIMES until the only errors remaining
were about tables already existing and duplicate values.
It works, but I wonder if the 'create table' commands just need to be
ordered so the foreign key references appear after the creation of the
referenced table? Then the rake task might work.
RyanR>