Advertisement
Guest User

Untitled

a guest
Feb 4th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. var userSchema = new Schema({
  2. username: { type: String, trim: true, unique: true },
  3. password: { type: String, trim: true },
  4. firstname: { type: String, trim: true },
  5. lastname: { type: String, trim: true }
  6. });
  7.  
  8. 'use strict'
  9. var db = require('../usermodel.js');
  10.  
  11. exports.up = function(db, next) {
  12. db.rpush('username', 'admin');
  13. next();
  14. };
  15.  
  16. db.rpush is not a function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement