Test reversibility of migrations #220

Merged
bustikiller merged 35 commits from test-rollbacks into main 2025-01-25 09:43:43 +00:00
Showing only changes of commit 5b6082fad6 - Show all commits

View File

@ -34,7 +34,8 @@ jobs:
sleep 1
echo "Trying again"
done
- run: |
- name: Load schema and run unit tests
run: |
bundle exec rake db:schema:load
bundle exec rspec
env:
@ -46,7 +47,7 @@ jobs:
with:
files: |
db/migrate/**.rb
- name: List all migrations added
- name: Redo all migrations and check there are no schema changes
if: steps.changed-migration-files.outputs.any_changed == 'true'
env:
ALL_CHANGED_FILES: ${{ steps.changed-migration-files.outputs.all_changed_files }}