Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cfp:thumbspeak[master*]$ ./script/console
- Loading development environment (Rails 2.3.5)
- MONGODB admin.$cmd.find({:ismaster=>1}, {}).limit(-1)
- >> api = User.first.api
- MONGODB db.system.indexes.insert([{:ns=>"thumbspeak_development.users", :name=>"email_1", :unique=>true, :key=>{"email"=>1}}])
- MONGODB thumbspeak_development.users.find({}, {}).limit(-1)
- => #<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