Add legacy domain history model, remove some dead code, fix domain update xml #2693

This commit is contained in:
Martin Lensment 2015-08-12 17:58:49 +03:00
parent e42a50dc4c
commit dddc3207b9
4 changed files with 10 additions and 6 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -0,0 +1,7 @@
module Legacy
class DomainHistory < Db
self.table_name = :domain_history
belongs_to :domain, foreign_key: :id
end
end