Skip to content

Commit 990e3ca

Browse files
authored
readme updates with useful details (#81)
1 parent 7aff5de commit 990e3ca

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ node_modules/.bin/sequelize model:create --name User --attributes username:strin
6666
node_modules/.bin/sequelize model:create --name Task --attributes title:string
6767
```
6868

69+
```bash
70+
# spaces matter when specifying multiple attributes, ex:
71+
node_modules/.bin/sequelize model:create --name Task --attributes title:string,body:string
72+
```
73+
6974
We are using `.sequelizerc` setup change config path for migrations. You can read more about this in [migration docs](http://docs.sequelizejs.com/manual/tutorial/migrations.html#the-sequelizerc-file)
7075

7176
```js
@@ -77,6 +82,12 @@ module.exports = {
7782
}
7883
```
7984

85+
Don't forget to modify the config.js file to export the json blob or `db:*` commands will fail. See `config/config.js`
86+
87+
```js
88+
module.exports = //json blob
89+
```
90+
8091
You will now have a basic express application with some additional directories
8192
(config, models, migrations). Also you will find two migrations and models.
8293
One for the `User` and one for the `Task`.

0 commit comments

Comments
 (0)