I’ve got a couple of development machines, and on one of them I
recently updated Ruby to 1.8.5 (the other’s on 1.8.4), then rebuilt
gems and installed rails etc etc.
Apart from that the two machines are identical, and my apps work fine
However, I’m working on a new app, and was trying to run some unit
tests on the machine with Ruby 1.8.5, and noticed that even though the
test db was there it was bailing with errors about undefined
So I ran rake db:test:prepare, and still had problems until I noticed
that db/schema.rb is empty except for:
# This file is autogenerated. Instead of editing this file, please
# migrations feature of ActiveRecord to incrementally modify your
# then regenerate this schema definition.
ActiveRecord::Schema.define(:version => 14) do end
This doesn’t happen on the machine running Ruby 1.8.4. Is this a known
bug and is there a workaround? Can’t find anything online.