This commit is contained in:
Josh Pigford
2024-10-08 12:30:28 -05:00
parent e70d3d1902
commit 59e4eff24a

View File

@@ -1,6 +1,6 @@
namespace :invites do
desc "Create invite code(s). Usage: rake invites:create[count]"
task :create, [:count] => :environment do |_, args|
task :create, [ :count ] => :environment do |_, args|
count = (args[:count] || 1).to_i
count.times do
puts InviteCode.generate!