/**
* Questions.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs        :: http://sailsjs.org/#!documentation/models
*/

module.exports = {

  attributes: {
        text: 'string',
        type: {
            type: 'string', 
            enum: ['email', 'range', 'freetext']
        },
  }
};


/**
* Questions.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs        :: http://sailsjs.org/#!documentation/models
*/

module.exports = {

  attributes: {
        text: 'string',
        type: {
            type: 'string', 
            enum: ['string', 'text', 'range']
        },
  }
};


Modify question type to allow the following type: string, text or range
Modify question type to allow the following type: string, text or range
