Set association instead of foreign key

#623
This commit is contained in:
Artur Beljajev 2018-03-13 09:39:32 +02:00
parent a73a8a0b89
commit 3d107bd198

View file

@ -76,7 +76,7 @@ class Registrar < ActiveRecord::Base
seller_url: Setting.registry_url,
seller_email: Setting.registry_email,
seller_contact_name: Setting.registry_invoice_contact,
buyer_id: id,
buyer: self,
buyer_name: name,
buyer_reg_no: reg_no,
buyer_country_code: country_code,