How do I change my primary email

Hi. I hope it’s OK to continue this thread instead of starting a new one. I’m in the same boat as the original poster. I’m the admin for my discourse instance, and I dropped my personal domain before changing my email in Discourse.

I tried @pfaffman Jay’s suggestion to use the console to make the change, but am getting a bash syntax error with this line

u=User.find_by_email('old@email.address')

I substituted my old email address of course, but get this error:

bash: syntax error near unexpected token `('

Might the find_by_email method have changed in the past year? Sorry but I don’t really know Rails. I’m getting better at ssh’ing into the server and moving about though.