# MigrationOptions

`interface` in `plugins` · v0.7.2

<https://docs.seedcord.org/packages/plugins/0.7.2/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.

### 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.
