Skip to content

Commit

Permalink
Update knex.md with seed docs. (rstacruz#1328)
Browse files Browse the repository at this point in the history
Update knex.md with seed docs.
  • Loading branch information
rstacruz authored Jan 28, 2020
2 parents 30ca195 + 63bde1e commit ffdf83a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion knex.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,27 @@ See: [Update](#update-1)

### Migrations

```
```bash
knex init
knex migrate:make migration_name
knex migrate:make migration_name -x ts # Generates a TypeScript migration file
knex migrate:latest
knex migrate:rollback
```

See: [Migrations](#migrations-1)

### Seeds

```bash
knex seed:make seed_name
knex seed:make seed_name -x ts # Generates a TypeScript seed file
knex seed:run # Runs all seed files
knex seed:run --specific=seed-filename.js # Runs a specific seed file
```

See: [Seeds](http://knexjs.org/#Seeds)

## Connect
{: .-three-column}

Expand Down

0 comments on commit ffdf83a

Please sign in to comment.