diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-03 13:56:38 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-03 13:56:38 +0300 |
commit | c1b31deeae7ce4b0c927d89997c35dc227277fb6 (patch) | |
tree | f79fe643c3693f9645e2d8b6787117cbfe67cd3e | |
parent | 596bf4c2a59434c35eabd2336e249ebc3eb03f56 (diff) | |
parent | 57fddea8bbb867bde744e769d6d627e420533682 (diff) | |
download | gitlab-ce-c1b31deeae7ce4b0c927d89997c35dc227277fb6.tar.gz |
Merge pull request #7211 from cirosantilli/predictable-user
Add users with deterministic username and password to development seed.
-rw-r--r-- | db/fixtures/development/05_users.rb | 16 |
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 |