Permalink
Browse files

remove user sync ... it causes more problems than it solves

  • Loading branch information...
1 parent 8741201 commit 0e1eebc47eea0af93840f1dd4cfa049df46bdf6b @benwyrosdick benwyrosdick committed with pedro May 7, 2010
Showing with 0 additions and 13 deletions.
  1. +0 −13 lib/heroku/command/mongo.rb
@@ -47,19 +47,6 @@ def transfer(from, to)
end
end
display " done"
-
- display "Do you want to replace the users also? (y/n) ", false
- return unless ask.downcase == 'y'
- display "Syncing users...", false
- dest_user_col = dest.collection('system.users')
- origin_user_col = origin.collection('system.users')
- dest_user_col.find().each do |user|
- dest.remove_user(user['user'])
- end
- origin_user_col.find().each do |user|
- dest_user_col.insert user
- end
- display " done"
end
def heroku_mongo_uri

0 comments on commit 0e1eebc

Please sign in to comment.