mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
Cache contact code for epp eager errors
This commit is contained in:
parent
8aac684df7
commit
ddd91d464a
9 changed files with 42 additions and 14 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue