Discourse root email
-
Hello!
hope to find some help, Discourse is completely new to me...
I went through all the previous posts on same subject, but still I can't change the root email.
When I enter the first line it doesn't show the user id, created_at/updated_at, but only the four rows below:irb(main):001:0> u = User.find_by_username("root")
=>
#<User:0x00007f56d1eeff00
...When I enter the line 4 I get the message below:
irb(main):004:0> u.save!
/app/code/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/validations.rb:80:in `raise_validation_error': Validation failed: Primary email has already been taken (ActiveRecord::RecordInvalid)
irb(main):005:0>Thank you
-
Looks like some other users already has the same email address? Maybe you have logged into the app with a user with that email before?
-
N nebulon marked this topic as a question on
-
N nebulon has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login