Test reversibility of migrations #220
@ -35,8 +35,7 @@ jobs:
|
||||
echo "Trying again"
|
||||
done
|
||||
- run: |
|
||||
git fetch
|
||||
migrations_added=$(git diff origin/${{ github.base_ref }} --name-only db/migrate/ | wc -l)
|
||||
migrations_added=$(git diff ${{ github.event.pull_request.base.sha }} --name-only db/migrate/ | wc -l)
|
||||
echo "Migrations added: $migrations_added"
|
||||
bundle exec rake db:schema:load db:migrate:status db:migrate:redo
|
||||
git diff --exit-code db/schema.rb
|
||||
|
Loading…
x
Reference in New Issue
Block a user