# MigrationOptions

`interface` in `plugins` · v0.6.1

<https://docs.seedcord.org/packages/plugins/0.6.1/interfaces/migration-options>

Behavior configuration for migrations that should run automatically when a database connection is established.

```ts
interface MigrationOptions
```

## Properties

### direction

```ts
readonly direction: 'latest' | 'up' | 'down'
```

Direction to move along the migration timeline. Defaults to `latest`.

### steps

```ts
readonly steps: number
```

Number of steps to apply when direction is `up` or `down`.

### target

```ts
readonly target: MigrationTarget
```

Optional target migration to reach. Defaults to latest if omitted.
