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

Ticket #3707 (new defect)

Opened 2 years ago

Last modified 2 years ago

[XPATCH] Improved error message for ActiveRecord::Migration

Reported by: pezra@barelyenoug.org Assigned to: David
Priority: normal Milestone: 1.2.7
Component: ActiveRecord Version: 1.0.0
Severity: minor Keywords:
Cc:

Description

Currently if 'rake migrate' is run against a database for the first time and the user specified in database.yml does not have privileges to create a table the task fails with the following uninformative output:

pwilliams@xps:~/projects/ramps$ rake migrate (in /home/pwilliams/projects/ramps)
rake aborted!
MysqlError: Table 'ramps_development.schema_info' doesn't exist: SELECT version FROM schema_info

Attachments

better_init_scheme_info_errors.diff (1.2 kB) - added by pezra@barelyenough.org on 02/02/06 23:08:52.
Change that allows any actual errors that occur while creating schema_info to be displayed to the user. No unit tests because I could not think of any reasonable way to write such a test.

Change History

02/02/06 23:08:52 changed by pezra@barelyenough.org

  • attachment better_init_scheme_info_errors.diff added.

Change that allows any actual errors that occur while creating schema_info to be displayed to the user. No unit tests because I could not think of any reasonable way to write such a test.

03/26/06 11:22:35 changed by anonymous

  • summary changed from Improved error message for ActiveRecord::Migration to [XPATCH] Improved error message for ActiveRecord::Migration.
  • milestone set to 1.1.