diff --git a/app/config/associate.js b/app/config/associate.js deleted file mode 100644 index 537dd2b..0000000 --- a/app/config/associate.js +++ /dev/null @@ -1,24 +0,0 @@ -module.exports = models => { - const { - donor, - Grant, - Cause, - Region, - Organization, - Charge, - PaymentPlan, - GrantsOrganizations, - Project - } = models; - console.log(models); - - donor.hasMany(Grant, { foreignKey: 'donor_id' }); - - Grant.belongsToMany(Organization, { - through: 'Grant_Organization', - foreignKey: 'grant_id', - otherKey: 'organization_id' - }); - - Grant.hasMany(Charge, { foreignKey: 'grant_id' }); -};