Remove dodgy association
This commit is contained in:
10
README.md
10
README.md
@ -14,6 +14,12 @@
|
|||||||
Sequelize is used to create and run migrations, for example:
|
Sequelize is used to create and run migrations, for example:
|
||||||
|
|
||||||
```
|
```
|
||||||
yarn run sequelize -- migration:create
|
yarn run sequelize migration:create
|
||||||
yarn run sequelize -- db:migrate
|
yarn run sequelize db:migrate
|
||||||
|
```
|
||||||
|
|
||||||
|
Or to run migrations on test database:
|
||||||
|
|
||||||
|
```
|
||||||
|
yarn run sequelize db:migrate -- --env test
|
||||||
```
|
```
|
||||||
|
@ -29,7 +29,6 @@ const User = sequelize.define(
|
|||||||
classMethods: {
|
classMethods: {
|
||||||
associate: models => {
|
associate: models => {
|
||||||
User.hasMany(models.ApiKey, { as: 'apiKeys' });
|
User.hasMany(models.ApiKey, { as: 'apiKeys' });
|
||||||
User.hasMany(models.Collection, { as: 'collections' });
|
|
||||||
User.hasMany(models.Document, { as: 'documents' });
|
User.hasMany(models.Document, { as: 'documents' });
|
||||||
User.hasMany(models.View, { as: 'views' });
|
User.hasMany(models.View, { as: 'views' });
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user