This commit is contained in:
vilet.yy 2021-06-11 14:54:24 +08:00
parent 672f37fe48
commit 1376e004f2
1 changed files with 1 additions and 13 deletions

View File

@ -11,16 +11,4 @@ module Dcodes
code code
end end
def init_project_invite_code
total_count = Project.where(invite_code: nil).size
limit = 100
page = 1
while page * limit > total_count do
bulk_arr = []
(1..100).each do |_|
bulk_arr < DCODES.sample(6).join
end
end
end
end end