mirror of
https://github.com/internetee/registry.git
synced 2025-05-28 09:51:03 +02:00
Add reference numbers to registrars
This commit is contained in:
parent
d61ea17fea
commit
065df13805
7 changed files with 48 additions and 4 deletions
|
@ -92,6 +92,13 @@ namespace :import do
|
|||
|
||||
Registrar.import registrars, validate: false
|
||||
|
||||
puts "-----> Generating reference numbers"
|
||||
|
||||
Registrar.all.each do |x|
|
||||
x.generate_iso_11649_reference_no
|
||||
x.save(validate: false)
|
||||
end
|
||||
|
||||
puts "-----> Imported #{count} new registrars in #{(Time.zone.now.to_f - start).round(2)} seconds"
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue