Skip to content

Commit a0b72a4

Browse files
andres9366hasushantdhiman
authored andcommitted
Update FAQ.md (#500)
* Update FAQ.md Adding sequelize installation and create/remove seeders * Update FAQ.md * Update FAQ.md
1 parent 6aa70b6 commit a0b72a4

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

FAQ.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
The Sequelize Command Line Interface (CLI) Frequently Asked Question
22

3+
## Initialize sequelize to create necessary files in the project
4+
```
5+
sequelize init
6+
```
7+
38
## How can I generate a model?
49
Specify model name with `--name` argument. List of table fields can be passed with `--attributes` option
510
```
@@ -11,7 +16,23 @@ $ sequelize model:create --name User --attributes name:string,state:boolean,birt
1116
sequelize db:migrate
1217
```
1318
## How can I make a migrations rollback?
14-
1519
```
1620
sequelize db:migrate:undo:all
1721
```
22+
23+
## How can I create a seeder?
24+
Specify seeder name with `--name` argument
25+
```
26+
sequelize seed:create --name <seeder_name>
27+
```
28+
29+
## How can I run the seeders?
30+
```
31+
sequelize db:seed:all
32+
```
33+
34+
## How can I make the seeders rollback?
35+
```
36+
sequelize db:seed:undo:all
37+
```
38+

0 commit comments

Comments
 (0)