Rake task for merging users

[email protected]:~# /var/discourse/launcher stop import
+ /usr/bin/docker stop -t 10 import

[email protected]:~# /var/discourse/launcher start app
starting up existing container
+ /usr/bin/docker start app

[email protected]:~# /var/discourse/launcher enter app

[email protected]:/var/www/discourse# rake --tasks

rake users:merge['old_username','username_to_keep']

I tested this on @jacobsayles’s account - I actually found three separate accounts imported, merged them all, then merged into his new login. It was smart enough to set the “join date” to the oldest account’s join date, and elegantly merged all post history.