Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11592 (new defect)

Opened 1 month ago

Last modified 1 month ago

Since r9244, migrations broken on clean db

Reported by: ian.w.white@gmail.com Assigned to: core
Priority: normal Milestone: 2.x
Component: ActiveRecord Version: edge
Severity: normal Keywords: migrations
Cc:

Description

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

Attachments

fix_11592_migrations_broken_on_clean_db.git.patch (2.1 kB) - added by ian.w.white@gmail.com on 04/14/08 19:20:55.

Change History

04/14/08 19:20:55 changed by ian.w.white@gmail.com

  • attachment fix_11592_migrations_broken_on_clean_db.git.patch added.

04/15/08 03:35:40 changed by sjgman9

+1