Skip to content

Commit

Permalink
FAQ section (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
ralvarezo123 authored and sushantdhiman committed Jul 27, 2017
1 parent 054df9a commit 61104be
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
17 changes: 17 additions & 0 deletions FAQ.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
The Sequelize Command Line Interface (CLI) Frequently Asked Question

## How can I generate a model?
Specify model name with `--name` argument. List of table fields can be passed with `--attributes` option
```
$ sequelize model:create --name User --attributes name:string,state:boolean,birth:date,card:integer
```

## What is the command to executes all migrations?
```
sequelize db:migrate
```
## How can I make a migrations rollback?

```
sequelize db:migrate:undo:all
```
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,3 +325,7 @@ Additional note: If you need to access the sequelize instance, you can easily do
## Help

Read the manuals via `sequelize help:<task-name>` for further information.

## FAQ

You can find FAQ section [here](https://github.com/sequelize/cli/blob/master/FAQ.md)

0 comments on commit 61104be

Please sign in to comment.