Skip to content

Commit

Permalink
Fix dev user seed: multiple ID was used twice.
Browse files Browse the repository at this point in the history
  • Loading branch information
cirosantilli committed Sep 29, 2014
1 parent c2c41fb commit 1bebb90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db/fixtures/development/05_users.rb
Expand Up @@ -14,10 +14,11 @@
end
end

total = User.count
(1..5).each do |i|
begin
User.seed(:id, [
id: i + 10,
id: total + i,
username: "user#{i}",
name: "User #{i}",
email: "user#{i}@example.com",
Expand Down

0 comments on commit 1bebb90

Please sign in to comment.