Skip to content

Commit

Permalink
Include 10 events in seeds of database
Browse files Browse the repository at this point in the history
  • Loading branch information
lizgarciao committed Nov 26, 2023
1 parent d6ca553 commit 8b8cb07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions db/seeds.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
seeder = DataSeeder.new
seeder.generate_dump_types
seeder.generate_dump_file_types

10.times do |i|
Event.find_or_create_by(id: i+1, start: "200#{i}-10-10", finish: "200#{i}-10-11", success: true)
end

0 comments on commit 8b8cb07

Please sign in to comment.