# Collections

Snapshot the local collections into a new migration.

### Syntax

```
$ vela migrate collections
```

Compares the collections in your local database against the migrations on disk and writes a migration for the difference. This is how changes made by hand in the PocketBase admin interface get captured into version control.

If the migrations already describe the current schema, nothing is written. `vela migrate snapshot` is an alias.

Review the generated file, commit it so teammates pick up the schema, and run [`vela migrate up`](/migrate/up) on other environments to apply it.