Skip to content

Commit

Permalink
Amend migrations step to make sure schema.rb is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
nudded committed Jul 30, 2024
1 parent fb0ca06 commit b2f63aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/migrations-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ jobs:
shell: bash
- name: Generate RSA keys
run: ./scripts/generate.rsa.sh
- name: Move db schema for comparison
run: mv db/schema.rb db/schema-before-dump.rb
- name: Perform Postgres database migrations
run: bin/rails db:migrate:primary
- name: dump schema
run: LAGO_DISABLE_SCHEMA_DUMP="" bin/rails db:schema:dump:primary
- name: Ensure no changes to schema.rb
run: diff db/schema.rb db/schema-before-dump.rb
- name: Perform Clickhouse database migrations
run: bin/rails db:migrate:clickhouse

0 comments on commit b2f63aa

Please sign in to comment.