diff --git a/app/models/choice.js b/app/models/choice.js index 9454e50..b5e1dbb 100644 --- a/app/models/choice.js +++ b/app/models/choice.js @@ -3,7 +3,5 @@ import DS from "ember-data"; export default DS.Model.extend({ title: DS.attr(), description: DS.attr(), - positiveWeight: DS.attr(), - negativeWeight: DS.attr(), question: DS.belongsTo('question') }) \ No newline at end of file diff --git a/app/models/question.js b/app/models/question.js index a1ee658..5932abe 100644 --- a/app/models/question.js +++ b/app/models/question.js @@ -5,6 +5,8 @@ export default DS.Model.extend({ description: DS.attr(), explanation: DS.attr(), difficulty: DS.attr(), + positiveScore: DS.attr(), + negativeScore: DS.attr(), user: DS.belongsTo('user'), choices: DS.hasMany('choice'), tags: DS.hasMany('tag') diff --git a/app/pods/components/question-editor/template.hbs b/app/pods/components/question-editor/template.hbs index 1e67792..b188a5b 100644 --- a/app/pods/components/question-editor/template.hbs +++ b/app/pods/components/question-editor/template.hbs @@ -42,6 +42,22 @@ +