summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-06-17 14:30:21 -0400
committerrealtradam <[email protected]>2024-06-17 14:30:21 -0400
commit2344d1da81f35546c56f513c79cadea34111e589 (patch)
treee7a4f59a7df80a753878215a68a2c84005b94dce
parent39f2dc47ef9aa94b2fe30019715a9484000552a9 (diff)
downloadgameHolster-2344d1da81f35546c56f513c79cadea34111e589.tar.gz
gameHolster-2344d1da81f35546c56f513c79cadea34111e589.zip
fix matching user in seeds
-rw-r--r--db/seeds.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/seeds.rb b/db/seeds.rb
index 2526149..3f2c6d6 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -124,7 +124,7 @@ games = [
]
games.each do |game|
- next if Game.exists?(title: game[:title], user_id: 0) # first user is always me
+ next if Game.exists?(title: game[:title], user_id: 1) # first user is always me
tags = game[:tags]
game.delete(:tags)
game_obj = user.games.new(game)