views:

44

answers:

2

hi all,

I am trying to migrate ruby on rails application from one machine to another and when I type Rake db:migrate it gives following error:

Mysql::Error: Table 'schema_migrations' already exists:
CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB

what might be the possible cause..?

+1  A: 

Hi try rake db:drop rake db:create rake db:migrate

Bohdan Pohorilets
+3  A: 

As mentioned by Bohdan...

or

rake db:migrate:reset
Sourcebits