diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-12-20 20:18:15 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-12-20 20:18:15 +0200 |
commit | 223e509f7072703da220ebbb2c6ddcfa5915c3b9 (patch) | |
tree | 976fb3dd7df995c22430228025feb8ebac35f8e0 /db/fixtures | |
parent | 6a5766e370bf16c98129086dbbe94a0747cb35f8 (diff) | |
parent | 083f1e2f13e546e973cf7304adb00c81b1423ba6 (diff) | |
download | gitlab-ce-223e509f7072703da220ebbb2c6ddcfa5915c3b9.tar.gz |
Merge pull request #7894 from cirosantilli/fix-dev-user-seed
Fix dev user seed: ID was used twice.
Diffstat (limited to 'db/fixtures')
-rw-r--r-- | db/fixtures/development/05_users.rb | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/db/fixtures/development/05_users.rb b/db/fixtures/development/05_users.rb index c263dd232af..b697f58d4ef 100644 --- a/db/fixtures/development/05_users.rb +++ b/db/fixtures/development/05_users.rb @@ -16,14 +16,13 @@ Gitlab::Seeder.quiet do (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' - ]) + User.seed do |s| + s.username = "user#{i}" + s.name = "User #{i}" + s.email = "user#{i}@example.com" + s.confirmed_at = DateTime.now + s.password = '12345678' + end print '.' rescue ActiveRecord::RecordNotSaved print 'F' |