diff --git a/app/models/question.js b/app/models/question.js index 1d4b5ff..d01ba7a 100644 --- a/app/models/question.js +++ b/app/models/question.js @@ -5,5 +5,6 @@ export default DS.Model.extend({ description: DS.attr(), difficulty: DS.attr(), user: DS.belongsTo('user'), - choices: DS.hasMany('choice') + choices: DS.hasMany('choice'), + tags: DS.hasMany('tag') }) \ No newline at end of file diff --git a/app/models/tag.js b/app/models/tag.js new file mode 100644 index 0000000..375c039 --- /dev/null +++ b/app/models/tag.js @@ -0,0 +1,5 @@ +import DS from 'ember-data'; + +export default DS.Model.extend({ + name: DS.attr() +}) diff --git a/app/pods/components/nav-bar/template.hbs b/app/pods/components/nav-bar/template.hbs index 1c56b2c..11ba59f 100644 --- a/app/pods/components/nav-bar/template.hbs +++ b/app/pods/components/nav-bar/template.hbs @@ -12,6 +12,12 @@