# drizzle/stale-migrations

> Runs `drizzle-kit generate` and fails when it creates a migration.

Runs `drizzle-kit generate` and fails when it creates a migration.

Part of the [`drizzle`](/reference/configurations/drizzle/) configuration, at the `recommended` [level](/start/concepts/#levels). It runs at the `push` [stage](/start/concepts/#stage), once per scope. It runs drizzle-kit.

## Why

A schema change with no migration works only on the machine that pushed it.

## What to do

Run `drizzle-kit generate` and commit the migration.

## Example

A schema change with no new migration reports drift. Run `drizzle-kit generate`, review the migration, and commit it.

## Turn it off

Turn it off for some files, or one of its lint rules, with a reason:

```shell
gspot ignore drizzle/stale-migrations --paths "<glob>" --reason "<why>"
gspot ignore drizzle/stale-migrations --rule <rule> --reason "<why>"
```
