Remove dodgy association
This commit is contained in:
parent
cac4b0811b
commit
c0f971fdd0
10
README.md
10
README.md
|
@ -14,6 +14,12 @@
|
|||
Sequelize is used to create and run migrations, for example:
|
||||
|
||||
```
|
||||
yarn run sequelize -- migration:create
|
||||
yarn run sequelize -- db:migrate
|
||||
yarn run sequelize migration:create
|
||||
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: {
|
||||
associate: models => {
|
||||
User.hasMany(models.ApiKey, { as: 'apiKeys' });
|
||||
User.hasMany(models.Collection, { as: 'collections' });
|
||||
User.hasMany(models.Document, { as: 'documents' });
|
||||
User.hasMany(models.View, { as: 'views' });
|
||||
},
|
||||
|
|
Reference in New Issue