mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 18:59:38 +02:00
Add legacy domain history model, remove some dead code, fix domain update xml #2693
This commit is contained in:
parent
e42a50dc4c
commit
dddc3207b9
4 changed files with 10 additions and 6 deletions
|
@ -228,9 +228,9 @@ module Depp
|
|||
|
||||
{
|
||||
name: { value: domain_params[:name] },
|
||||
chg: chg,
|
||||
add: add_arr,
|
||||
rem: rem_arr
|
||||
rem: rem_arr,
|
||||
chg: chg
|
||||
}
|
||||
end
|
||||
# rubocop: enable Metrics/PerceivedComplexity
|
||||
|
|
|
@ -501,10 +501,6 @@ class Domain < ActiveRecord::Base
|
|||
(errors.keys - assoc_errors).empty?
|
||||
end
|
||||
|
||||
def statuses_tab_valid?
|
||||
!errors.keys.any? { |x| x.match(/domain_statuses/) }
|
||||
end
|
||||
|
||||
## SHARED
|
||||
|
||||
def name_in_wire_format
|
||||
|
|
|
@ -11,5 +11,6 @@ module Legacy
|
|||
has_many :dnskeys, foreign_key: :keysetid, primary_key: :keyset
|
||||
has_many :domain_contact_maps, foreign_key: :domainid
|
||||
has_many :nsset_contact_maps, foreign_key: :nssetid, primary_key: :nsset
|
||||
has_many :domain_histories, foreign_key: :id
|
||||
end
|
||||
end
|
||||
|
|
7
app/models/legacy/domain_history.rb
Normal file
7
app/models/legacy/domain_history.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
module Legacy
|
||||
class DomainHistory < Db
|
||||
self.table_name = :domain_history
|
||||
|
||||
belongs_to :domain, foreign_key: :id
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue