diff --git a/src/docs/database-migrations.mdx b/src/docs/database-migrations.mdx index 52b7ad94e6..38921fbccd 100644 --- a/src/docs/database-migrations.mdx +++ b/src/docs/database-migrations.mdx @@ -86,7 +86,7 @@ class MyMigrationTest(TestMigrations): ``` -To run the test locally, set environment variable `MIGRATIONS_TEST_MIGRATE=1`. +To run the test locally, run `pytest` with `--migrations` flag. For example, `pytest -v --migrations tests/getsentry/migrations/test_0XXX_migration_name.py`. #### Notes