From 43d384961ab4d2308a76e5900480f239183ac173 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 18 Nov 2025 17:59:13 +0100 Subject: [PATCH] Add users to the populater too --- script/populate.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script/populate.rb b/script/populate.rb index cec18122a..ed219d1b5 100644 --- a/script/populate.rb +++ b/script/populate.rb @@ -5,6 +5,7 @@ ACCOUNT = Account.find_by(name: "cleanslate") CARDS_COUNT = ARGV.first&.to_i || 10_000 BOARDS_COUNT = ARGV.second&.to_i || 100 TAGS_COUNT = ARGV.third&.to_i || 500 +USERS_COUNT = ARGV.fourth&.to_i || 1000 Current.account = ACCOUNT Current.session = ACCOUNT.users.last.identity.sessions.first @@ -29,5 +30,9 @@ Board.suppressing_turbo_broadcasts do ACCOUNT.cards.take.toggle_tag_with Faker::Game.title print "." end + + USERS_COUNT.times do + ACCOUNT.users.create! name: Faker::FunnyName + end end end