diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-06-27 02:04:10 +0400 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-01 15:48:35 +0400 |
commit | 57fddea8bbb867bde744e769d6d627e420533682 (patch) | |
tree | a719589e84c25dd5dd57874c7bf7cfc378bb714a /db/fixtures/development | |
parent | 174c00cf2c026a3bdc61d94b45195a5e5c99202f (diff) |
Add users with predictable username and password
to development seed.
Diffstat (limited to 'db/fixtures/development')
-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 |