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
path: root/db
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-06-27 02:04:10 +0400
committerCiro Santilli <ciro.santilli@gmail.com>2014-09-01 15:48:35 +0400
commit57fddea8bbb867bde744e769d6d627e420533682 (patch)
treea719589e84c25dd5dd57874c7bf7cfc378bb714a /db
parent174c00cf2c026a3bdc61d94b45195a5e5c99202f (diff)
Add users with predictable username and password
to development seed.
Diffstat (limited to 'db')
-rw-r--r--db/fixtures/development/05_users.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/db/fixtures/development/05_users.rb b/db/fixtures/development/05_users.rb
index f4a5b8631a4..c263dd232af 100644
--- a/db/fixtures/development/05_users.rb
+++ b/db/fixtures/development/05_users.rb
@@ -13,4 +13,20 @@ Gitlab::Seeder.quiet do
print 'F'
end
end
+
+ (1..5).each do |i|
+ begin
+ User.seed(:id, [
+ id: i + 10,
+ username: "user#{i}",
+ name: "User #{i}",
+ email: "user#{i}@example.com",
+ confirmed_at: DateTime.now,
+ password: '12345678'
+ ])
+ print '.'
+ rescue ActiveRecord::RecordNotSaved
+ print 'F'
+ end
+ end
end