Guest User

Untitled

a guest
Apr 7th, 2018
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. cfp:~/git/bs > ./script/dbconsole
  2. MongoDB shell version: 1.2.1
  3. url: bs_development
  4. connecting to: bs_development
  5. type "help" for help
  6. > db.users.save({ 'email' : 'ara.t.howard@gmail.com' })
  7. > db.users.save({ 'email' : 'ara.t.howard@gmail.com' })
  8. E11000 duplicate key errorindex: bs_development.users.$email_1 dup key: { : "ara.t.howard@gmail.com" }
  9. > db.system.indexes.find()
  10. { "name" : "_id_", "ns" : "bs_development.users", "key" : { "_id" : ObjectId("000000000000000000000000") } }
  11. { "name" : "_id_", "ns" : "bs_development.app.models", "key" : { "_id" : ObjectId("000000000000000000000000") } }
  12. { "name" : "_id_", "ns" : "bs_development.bs_development.users", "key" : { "_id" : ObjectId("000000000000000000000000") } }
  13. { "ns" : "bs_development.bs_development.users", "key" : { "email" : 1 }, "name" : "email_1", "unique" : true }
  14. { "ns" : "bs_development.users", "key" : { "email" : 1 }, "name" : "email_1", "unique" : true }
  15. >
Add Comment
Please, Sign In to add comment