Skip to content

Commit

Permalink
remove user sync ... it causes more problems than it solves
Browse files Browse the repository at this point in the history
  • Loading branch information
benwyrosdick authored and Pedro Belo committed May 8, 2010
1 parent 8741201 commit 0e1eebc
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/heroku/command/mongo.rb
Expand Up @@ -47,19 +47,6 @@ def transfer(from, to)
end end
end end
display " done" 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 end


def heroku_mongo_uri def heroku_mongo_uri
Expand Down

0 comments on commit 0e1eebc

Please sign in to comment.