Is there a way to allow remote Rails migrations?

They removed my migration, and I do not want to return these remote migrations.

This is what rake db:migrate:statusproduces:

 Status   Migration ID    Migration Name
------------------------------------------------------

   up     0               ********** NO FILE *********
   up     20150209023430  Create users 
   up     20150320184628  ********** NO FILE **********
   up     20150322004817  Add roles to users
   up     20150403190042  ********** NO FILE **********

rake db:migrateand the rake db:rollbackteams will not work due to missing files.

I have no intention of losing my data, so I do not want to use rake db:dropor rake db:reset.

What can I do to complete the migration and rollback and how to get rid of the missing files?

+4
source share
2 answers

- , :

rake db:migrate:down VERSION=20100905201547

rake db:migrate:status

+2

, . rake db:migrate:status, .

schema_migrations, sql.

delete from schema_migrations where version = <version_number> , .

+4

All Articles