rake build_postgres_databases fails on edge... How to use the new schema.rb system?

The subject pretty much says it all. I'm getting ready to set up an
environment for working on my first patch, and I discovered that the
activerecord/test/schema files have changed, but the Rakefile hasn't
yet been updated.

Is there a simple way to set up the test databases with the new system?

Oops, my bad :slight_smile:
I'll get a patch in, but until then if you just remove the lines
     %x( psql activerecord_unittest -f #{File.join(SCHEMA_ROOT, 'postgresql.sql')} )
     %x( psql activerecord_unittest2 -f #{File.join(SCHEMA_ROOT, 'postgresql2.sql')} )
Then I think you should be ok


There were 2 cockups introduced by my rejigging of all that stuff (but at the end of the day both due to the fact that it didn't cross my mind to make sure that everything worked when starting from scratch).
I've created a patch to fix this: http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/65-running-postgres-unit-tests-broken-when-starting-from-scratch

Sorry for the breakage.