Add reference numbers to registrars

This commit is contained in:
Martin Lensment 2015-04-14 12:48:45 +03:00
parent d61ea17fea
commit 065df13805
7 changed files with 48 additions and 4 deletions

View 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