mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +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
10
db/migrate/20150414092249_add_reference_no_to_registrar.rb
Normal file
10
db/migrate/20150414092249_add_reference_no_to_registrar.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
class AddReferenceNoToRegistrar < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :registrars, :reference_no, :string
|
||||
|
||||
Registrar.all.each do |x|
|
||||
x.generate_iso_11649_reference_no
|
||||
x.save
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue