Skip to content

Commit

Permalink
Simplify this insert_all a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspth committed Jan 14, 2024
1 parent 67f467c commit 37ff31b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/dummy/db/seeds/test/cases/pagination.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
item_id = accounts.kaspers_donuts.menus.first.items.pick(:id)

orders.insert_all \
[{ user_id: users.kasper.id, item_id: item_id }] * 100
orders.insert_all [user_id: users.kasper.id, item_id:] * 100

0 comments on commit 37ff31b

Please sign in to comment.