u=User.new(username: 'test_user',email: 'test@example.com',name: 'Test User',password: 'password',password_confirmation: 'password')u.skip_confirmation!# Use it only if you wish user to be automatically confirmed. If skipped, user receives confirmation e-mailu.save!
Docs
Edit this page
to fix an error or add an improvement in a merge request. Create an issue
to suggest an improvement to this page.
View pricing
to see all GitLab tiers and features, or to upgrade. Try GitLab for free
with access to all features for 30 days.
Get Help
If you didn't find what you were looking for,
search the docs.
If you want help with something specific and could use community support,
post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab
subscription).