Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migration command #486

Merged
merged 8 commits into from
Jul 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -319,3 +319,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)