Commit 9092e871 authored by Albert Salim's avatar Albert Salim

Merge branch 'pb-ci-check-reverse-migration-order' into 'master'

Run migrations in reverse order in CI check [RUN ALL RSPEC]

See merge request gitlab-org/gitlab!53181
parents 97d0cba7 f68dc220
...@@ -27,7 +27,7 @@ class MigrationSchemaValidator ...@@ -27,7 +27,7 @@ class MigrationSchemaValidator
private private
def validate_schema_on_rollback! def validate_schema_on_rollback!
committed_migrations.each do |filename| committed_migrations.reverse_each do |filename|
version = find_migration_version(filename) version = find_migration_version(filename)
run("bin/rails db:migrate:down VERSION=#{version}") run("bin/rails db:migrate:down VERSION=#{version}")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment