Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/fixtures/production/001_admin.rb')
-rw-r--r--db/fixtures/production/001_admin.rb31
1 files changed, 0 insertions, 31 deletions
diff --git a/db/fixtures/production/001_admin.rb b/db/fixtures/production/001_admin.rb
deleted file mode 100644
index 8b560ee09e0..00000000000
--- a/db/fixtures/production/001_admin.rb
+++ /dev/null
@@ -1,31 +0,0 @@
-if ENV['GITLAB_ROOT_PASSWORD'].blank?
- password = '5iveL!fe'
- expire_time = Time.now
-else
- password = ENV['GITLAB_ROOT_PASSWORD']
- expire_time = nil
-end
-
-admin = User.create(
- email: "admin@example.com",
- name: "Administrator",
- username: 'root',
- password: password,
- password_expires_at: expire_time,
- theme_id: Gitlab::Theme::MARS
-
-)
-
-admin.projects_limit = 10000
-admin.admin = true
-admin.save!
-admin.confirm!
-
-if admin.valid?
-puts %Q[
-Administrator account created:
-
-login.........root
-password......#{password}
-]
-end