mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
parent
857b35417a
commit
f0a7edd6d8
14 changed files with 18 additions and 24 deletions
|
@ -56,6 +56,8 @@ class Contact < ApplicationRecord
|
|||
|
||||
after_save :update_related_whois_records
|
||||
|
||||
self.ignored_columns = %w[legacy_id legacy_history_id]
|
||||
|
||||
ORG = 'org'
|
||||
PRIV = 'priv'
|
||||
|
||||
|
|
|
@ -22,6 +22,8 @@ class Dnskey < ApplicationRecord
|
|||
FLAGS = %w(0 256 257) # 256 = ZSK, 257 = KSK
|
||||
DS_DIGEST_TYPE = [1,2]
|
||||
|
||||
self.ignored_columns = %w[legacy_domain_id]
|
||||
|
||||
def epp_code_map
|
||||
{
|
||||
'2005' => [
|
||||
|
|
|
@ -169,6 +169,8 @@ class Domain < ApplicationRecord
|
|||
attr_accessor :registrant_typeahead, :update_me,
|
||||
:epp_pending_update, :epp_pending_delete, :reserved_pw
|
||||
|
||||
self.ignored_columns = %w[legacy_id legacy_registrar_id legacy_registrant_id]
|
||||
|
||||
def subordinate_nameservers
|
||||
nameservers.select { |x| x.hostname.end_with?(name) }
|
||||
end
|
||||
|
|
|
@ -8,6 +8,8 @@ class DomainContact < ApplicationRecord
|
|||
|
||||
attr_accessor :value_typeahead
|
||||
|
||||
self.ignored_columns = %w[legacy_domain_id legacy_contact_id]
|
||||
|
||||
def epp_code_map
|
||||
{
|
||||
'2302' => [
|
||||
|
|
|
@ -34,6 +34,8 @@ class Nameserver < ApplicationRecord
|
|||
|
||||
delegate :name, to: :domain, prefix: true
|
||||
|
||||
self.ignored_columns = %w[legacy_domain_id]
|
||||
|
||||
def epp_code_map
|
||||
{
|
||||
'2302' => [
|
||||
|
|
|
@ -46,6 +46,8 @@ class Registrar < ApplicationRecord
|
|||
RegenerateRegistrarWhoisesJob.enqueue id
|
||||
end
|
||||
|
||||
self.ignored_columns = %w[legacy_id]
|
||||
|
||||
class << self
|
||||
def ordered
|
||||
order(name: :asc)
|
||||
|
@ -194,4 +196,4 @@ class Registrar < ApplicationRecord
|
|||
def vat_liable_in_foreign_country?
|
||||
!vat_liable_locally?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -8,6 +8,8 @@ class ReservedDomain < ApplicationRecord
|
|||
|
||||
alias_attribute :registration_code, :password
|
||||
|
||||
self.ignored_columns = %w[legacy_id]
|
||||
|
||||
class << self
|
||||
def pw_for(domain_name)
|
||||
name_in_ascii = SimpleIDN.to_ascii(domain_name)
|
||||
|
|
|
@ -5,6 +5,8 @@ class User < ApplicationRecord
|
|||
|
||||
attr_accessor :phone
|
||||
|
||||
self.ignored_columns = %w[legacy_id]
|
||||
|
||||
def id_role_username
|
||||
"#{self.id}-#{self.class}: #{self.username}"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue