Skip to main content

migrate/rollback

Run migrations:

NODE_ENV=development yarn psy db:migrate
NODE_ENV=test yarn psy db:migrate

Roll back a migration:

NODE_ENV=test yarn psy db:rollback

Roll back multiple migrations at once:

NODE_ENV=test yarn psy db:rollback --steps  3

For full details, see the migration documentation