Ignore legacy database columns

Closes #1377
This commit is contained in:
Artur Beljajev 2019-12-15 18:27:01 +02:00
parent 857b35417a
commit f0a7edd6d8
14 changed files with 18 additions and 24 deletions

View file

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