Skip to content

Commit

Permalink
docs: add additional alternative to enums in shell (#1250)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rochet2 authored Feb 17, 2023
1 parent 5664014 commit 1212f04
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,14 @@ $ sequelize db:seed:undo:all
```

## I am getting an error when attempting to create a model with an enum type.
The brackets `{}` likely need to be quoted in your shell
The brackets `{}` likely need to be quoted in your shell or there needs to be a space between the values
```
sequelize model:create --name User --attributes role:enum:'{Admin,Guest}'
```
or
```
sequelize model:create --name User --attributes role:enum:'{Admin, Guest}'
```
or possibly
```
sequelize model:create --name User --attributes role:enum:\{Admin,Guest\}
Expand Down

0 comments on commit 1212f04

Please sign in to comment.