Project

General

Profile

Rake db:migrate says there's a table when there isn't

Added by John D about 14 years ago

I'm trying to install redmine and I get this error

root@vps2:/var/www/redmine# rake db:migrate
(in /var/www/redmine)
rake aborted!
Mysql::Error: Table 'schema_migrations' already exists: CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB

(See full trace by running task with --trace)

Setup info:

About your application's environment
Ruby version 1.8.7 (i486-linux)
RubyGems version 1.3.5
Rack version 1.0
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Application root /var/www/redmine
Environment production
Database adapter mysql
Database schema version 0

Checked the database and that table is not there.