试试这个,
rake db:migrate:status RAILS_ENV=production # Display status of migrations
rake db:migrate:redo VERSION=my_version
Or you can go up or down from a specific version:
db:migrate:up VERSION=my_version
db:migrate:down VERSION=my_version
这只是示例,您需要说明您需要传递哪种类型的参数。