See the scripts in ./bin/.
After adding a migration, the demo and personas databases must be kept in sync. Run:
PGPORT=5432 RAILS_ENV=test bin/demo-remigrate
PGPORT=5432 RAILS_ENV=test bin/personas-remigrate
PGPORT=5432 RAILS_ENV=test bin/seeds-remigrateThis re-applies all migrations from the _001.sql baseline and regenerates the .pgbin and .sql snapshot files in db/. Commit the updated snapshots together with the migration file and the updated structure.sql.
Use ./bin/rblint and ./bin/rblint --fix.