+ check_diesel_schema:
+ image: jameshiew/diesel-cli
+ environment:
+ CARGO_HOME: .cargo
+ DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
+ commands:
+ - diesel migration run
+ - diesel print-schema --config-file=diesel.toml > tmp.schema
+ - diff tmp.schema crates/db_schema/src/schema.rs
+