What happened to this ruby ​​on rail migration?

I am trying to port ruby ​​to a rails application from one machine to another and when I type Rake db: migrate gives the following error:

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

what could be the possible reason ..?

+3
source share
3 answers

As mentioned by Bogdan ...

or

rake db:migrate:reset
+8
source

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

+2
source

. mysql:

/etc/init.d/mysqld restart
/etc/init.d/mysql restart
service mysqld restart

( , ), :

rake db:reset && rake db:test:clone

P.S. , zeus , .

+1

Source: https://habr.com/ru/post/1769282/


All Articles