Skip to content
代码片段 群组 项目
未验证 提交 5f681402 编辑于 作者: Amy Qualls's avatar Amy Qualls 提交者: GitLab
浏览文件

Merge branch 'docs-add-assign-namespace' into 'master'

Docs update create user script

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/143049



Merged-by: default avatarAmy Qualls <aqualls@gitlab.com>
Approved-by: default avatarAmy Qualls <aqualls@gitlab.com>
Co-authored-by: default avatarDavid Wainaina <dwainaina@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -84,6 +84,7 @@ To create a user through the Rails console: ...@@ -84,6 +84,7 @@ To create a user through the Rails console:
```ruby ```ruby
u = User.new(username: 'test_user', email: 'test@example.com', name: 'Test User', password: 'password', password_confirmation: 'password') u = User.new(username: 'test_user', email: 'test@example.com', name: 'Test User', password: 'password', password_confirmation: 'password')
u.assign_personal_namespace
u.skip_confirmation! # Use it only if you wish user to be automatically confirmed. If skipped, user receives confirmation e-mail u.skip_confirmation! # Use it only if you wish user to be automatically confirmed. If skipped, user receives confirmation e-mail
u.save! u.save!
``` ```
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册