Skip to content

Commit

Permalink
Update github repo and project models
Browse files Browse the repository at this point in the history
  • Loading branch information
joshsmith committed Jul 11, 2017
1 parent 71c763c commit 5393597
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/models/github-repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default Model.extend({
githubAccountType: attr(),
githubId: attr(),
insertedAt: attr(),
name: attr(),
updatedAt: attr(),

githubAppInstallation: belongsTo('github-app-installation', { async: true })
Expand Down
1 change: 1 addition & 0 deletions app/models/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default Model.extend({
taskLists: hasMany('task-list', { async: true }),
tasks: hasMany('tasks', { async: true }),
projectCategories: hasMany('project-category', { async: true }),
projectGithubRepos: hasMany('project-github-repo', { async: true }),
projectSkills: hasMany('project-skill', { async: true }),
projectUsers: hasMany('project-user', { async: true }),
stripeConnectPlan: belongsTo('stripe-connect-plan', { async: true }),
Expand Down
1 change: 1 addition & 0 deletions tests/unit/models/github-repo-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ testForAttributes('github-repo', [
'githubAccountType',
'githubId',
'insertedAt',
'name',
'updatedAt'
]);

Expand Down
2 changes: 2 additions & 0 deletions tests/unit/models/project-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ moduleForModel('project', 'Unit | Model | project', {
'model:donation-goal',
'model:organization',
'model:project-category',
'model:project-github-repo',
'model:project-skill',
'model:project-user',
'model:stripe-connect-account',
Expand All @@ -39,6 +40,7 @@ testForBelongsTo('project', 'stripeConnectPlan');

testForHasMany('project', 'donationGoals');
testForHasMany('project', 'projectCategories');
testForHasMany('project', 'projectGithubRepos');
testForHasMany('project', 'projectSkills');
testForHasMany('project', 'projectUsers');
testForHasMany('project', 'taskLists');
Expand Down

0 comments on commit 5393597

Please sign in to comment.