Renamed Document#atlasId finally

This commit is contained in:
Jori Lallo
2018-02-07 00:04:39 -08:00
parent 5588897271
commit f08b3e0ac5
8 changed files with 29 additions and 20 deletions

View File

@@ -116,7 +116,7 @@ const Document = sequelize.define(
Document.associate = models => {
Document.belongsTo(models.Collection, {
as: 'collection',
foreignKey: 'atlasId',
foreignKey: 'collectionId',
onDelete: 'cascade',
});
Document.belongsTo(models.User, {