Cache contact code for epp eager errors

This commit is contained in:
Martin Lensment 2014-12-10 11:35:48 +02:00
parent 8aac684df7
commit ddd91d464a
9 changed files with 42 additions and 14 deletions

View file

@ -0,0 +1,10 @@
class AddCodeCacheForDomainContact < ActiveRecord::Migration
def change
add_column :domain_contacts, :contact_code_cache, :string
DomainContact.all.each do |x|
x.contact_code_cache = x.contact.code
x.save
end
end
end