Skip to content

Commit d917639

Browse files
committed
Remove old games, not the new ones, doh
1 parent 109f7d2 commit d917639

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
# Remove all the old games.
4141
# This makes sure that we do not fill the database
42-
Game.where("created_at > ?", Date.today - 30).delete_all
42+
Game.where("created_at < ?", Date.today - 30).delete_all
4343

4444
game = Game.create(difficulty: data["difficulty"].to_i, state: "new")
4545

0 commit comments

Comments
 (0)