migration rollback in rails
-
11-10-2019 - |
Pergunta
Hey guys I only want to undo one migration file, something like
rake db:rollback VERSION=$TIMESTAMP
this command doesn't work, any suggestion?
Solução
rake db:migrate:down VERSION=$TIMESTAMP
should do the trick.
Outras dicas
rake db:rollback is now the way.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow