Skip to content

Commit

Permalink
Update seeds/games.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
connorshea committed Jun 23, 2019
1 parent 1ed8c58 commit 185f497
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion db/seeds/games.rb
Expand Up @@ -25,8 +25,10 @@ def cover_fetcher
end
engines.uniq!

# The name needs a randomly generated number appended to make sure it
# stays unique and doesn't run out of options.
game = Game.create!(
name: Faker::Game.unique.name,
name: "#{Faker::Game.name}#{Faker::Number.number(10)}",
description: Faker::Lorem.sentence,
genres: genres,
engines: engines,
Expand Down

0 comments on commit 185f497

Please sign in to comment.