We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
email_address = "user@example.com"
admin = Role.find_or_create_by(name: 'admin')
admin.users << User.find_by_user_key(email_address)
admin.save