Merge branch 'master' into like-button

This commit is contained in:
Riley Davis
2016-11-15 12:15:13 -07:00
committed by GitHub
9 changed files with 111 additions and 38 deletions
+3 -1
View File
@@ -24,7 +24,9 @@ const UserSchema = new mongoose.Schema({
required: true
}
}],
roles: [String]
roles: {
type: [{type: String, enum: ['admin', 'moderator']}]
}
}, {
timestamps: {
createdAt: 'created_at',