-
Notifications
You must be signed in to change notification settings - Fork 2
Admin Users
Thomas Scherz edited this page Oct 1, 2021
·
2 revisions
rails console
email_address = "[email protected]"
user = User.find_by_email(email_address)
user.role = "admin"
user.save
@user = User.new(display_name: "Thomas Scherz", email: "[email protected]", role: "read_only", account_active: true, password: "notapassword", password_confirmation: "notapassword")
@user.save