summaryrefslogtreecommitdiff
path: root/scripts/validate_migration_schema
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-02-18 06:09:43 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-02-18 06:09:43 +0000
commit98087a9853200d21ecaf50c075ee4346769c89c6 (patch)
tree6f70b3a7c189c8bf9a4c8eb0bef6472d29a0e7a6 /scripts/validate_migration_schema
parentb288724dd2141b12bb6d5b971b9d7bc9c23a11a7 (diff)
downloadgitlab-ce-98087a9853200d21ecaf50c075ee4346769c89c6.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/validate_migration_schema')
-rwxr-xr-xscripts/validate_migration_schema2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/validate_migration_schema b/scripts/validate_migration_schema
index 95a9ae9f93f..0b909f7ac77 100755
--- a/scripts/validate_migration_schema
+++ b/scripts/validate_migration_schema
@@ -27,7 +27,7 @@ class MigrationSchemaValidator
private
def validate_schema_on_rollback!
- committed_migrations.each do |filename|
+ committed_migrations.reverse_each do |filename|
version = find_migration_version(filename)
run("bin/rails db:migrate:down VERSION=#{version}")