summaryrefslogtreecommitdiff
path: root/db/fixtures/development/01_admin.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/fixtures/development/01_admin.rb')
-rw-r--r--db/fixtures/development/01_admin.rb25
1 files changed, 11 insertions, 14 deletions
diff --git a/db/fixtures/development/01_admin.rb b/db/fixtures/development/01_admin.rb
index 176845fd8a8..1927a39f388 100644
--- a/db/fixtures/development/01_admin.rb
+++ b/db/fixtures/development/01_admin.rb
@@ -1,14 +1,11 @@
-User.seed(:id, [
- {
- id: 1,
- name: "Administrator",
- email: "admin@example.com",
- username: 'root',
- password: "5iveL!fe",
- password_confirmation: "5iveL!fe",
- admin: true,
- projects_limit: 100,
- theme_id: Gitlab::Theme::MARS,
- confirmed_at: DateTime.now
- }
-])
+User.seed do |s|
+ s.id = 1
+ s.name = "Administrator"
+ s.email = "admin@example.com"
+ s.username = 'root'
+ s.password = "5iveL!fe"
+ s.password_confirmation = "5iveL!fe"
+ s.admin = true
+ s.projects_limit = 100
+ s.confirmed_at = DateTime.now
+end