Skip to content

Commit

Permalink
misc(migrations) - Add extra check to make sure schema.rb is up to da…
Browse files Browse the repository at this point in the history
…te. (#2347)

## Description

Make sure schema.rb is up to date with latest migrations.
  • Loading branch information
nudded authored Jul 31, 2024
1 parent fb0ca06 commit 9171d4c
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 9171d4c

Please sign in to comment.