1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 21:29:38 +02:00

Generate multiple invites

This commit is contained in:
Josh Pigford 2024-10-08 12:23:23 -05:00
parent 2f6479f058
commit e70d3d1902

View file

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