Rollback to a set version instead of an arbitrary number of steps

The previously hard-coded value can fail when new migrations are introduced
since multiple migrations may need to be rolled back atomically.

Closes #40302
This commit is contained in:
Stan Hu 2018-03-22 15:44:35 -07:00
parent be0ce05c5d
commit e06f678cd8

View file

@ -544,7 +544,7 @@ migration:path-mysql:
.db-rollback: &db-rollback
<<: *dedicated-no-docs-pull-cache-job
script:
- bundle exec rake db:rollback STEP=119
- bundle exec rake db:migrate VERSION=20170523121229
- bundle exec rake db:migrate
db:rollback-pg: