When migrating to a specified version on a clean db, the schema_migrations table can't be found, and an error is raised.
On a clean rails app:
script/generate migration Foo
create db/migrate
create db/migrate/20080414172731_foo.rb
rake db:migrate VERSION=20080414172731
rake aborted!
SQLite3::SQLException: no such table: schema_migrations: SELECT version FROM schema_migrations
I've also opened this ticket at lighthouse "#1":http://rails.lighthouseapp.com/projects/8994/tickets/1-since-r9244-migrations-broken-on-clean-db
Attached is a git patch, which introduces a test and fixes the problem