Rails3 rake db:test:prepare does not load stored procedures

see https://rails.lighthouseapp.com/projects/8994/tickets/5849-rails3-rake-task-dbtestprepare-no-longer-handles-stored-procedures

Stored procedures that are created using AR migrations show up in the
development and production databases are not added to the test
database. This is creating a fair degree of difficulty with our test
environment since it means that we must create the test database using
the Rails2 branch and then switch to the rrails3 branch and run our
tests by hand.

If somebody in the know could take a look into this problem it would
be greatly appreciated.

The ticket is marked as invalid. Did you try the solution that Michael
presented in the comments on the ticket?