Guest User

Untitled

a guest
May 1st, 2018
655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. cfp:thumbspeak[master*]$ ./script/console
  2. Loading development environment (Rails 2.3.5)
  3. MONGODB admin.$cmd.find({:ismaster=>1}, {}).limit(-1)
  4. >> api = User.first.api
  5. MONGODB db.system.indexes.insert([{:ns=>"thumbspeak_development.users", :name=>"email_1", :unique=>true, :key=>{"email"=>1}}])
  6. MONGODB thumbspeak_development.users.find({}, {}).limit(-1)
  7. => #<Api:0x1f17f38 @effective_user=#<User roles: ["user"], updated_at: Wed Mar 10 04:34:06 UTC 2010, _id: "4b97213ea04745919a000003", encoded_password: "Li4u", created_at: Tue Mar 09 21:34:06 -0700 2010, email: "ara.t.howard@gmail.com">, @catching=false, @real_user=#<User roles: ["user"], updated_at: Wed Mar 10 04:34:06 UTC 2010, _id: "4b97213ea04745919a000003", encoded_password: "Li4u", created_at: Tue Mar 09 21:34:06 -0700 2010, email: "ara.t.howard@gmail.com">, @mode="read">
Add Comment
Please, Sign In to add comment