diff --git a/app/models/depp/domain.rb b/app/models/depp/domain.rb index 36dafa128..05c1698fc 100644 --- a/app/models/depp/domain.rb +++ b/app/models/depp/domain.rb @@ -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 diff --git a/app/models/domain.rb b/app/models/domain.rb index af1a7240a..33b96e985 100644 --- a/app/models/domain.rb +++ b/app/models/domain.rb @@ -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 diff --git a/app/models/legacy/domain.rb b/app/models/legacy/domain.rb index 5f9568170..d0a05d178 100644 --- a/app/models/legacy/domain.rb +++ b/app/models/legacy/domain.rb @@ -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 diff --git a/app/models/legacy/domain_history.rb b/app/models/legacy/domain_history.rb new file mode 100644 index 000000000..234585ac3 --- /dev/null +++ b/app/models/legacy/domain_history.rb @@ -0,0 +1,7 @@ +module Legacy + class DomainHistory < Db + self.table_name = :domain_history + + belongs_to :domain, foreign_key: :id + end +end