mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Merge branch 'story/112965483-skip-blocked-domains' into staging
This commit is contained in:
commit
d5eebc5b09
2 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,8 @@ class BlockedDomain < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def remove_data
|
||||
next if Domain.where(name: name).any?
|
||||
|
||||
Whois::Record.where(name: name).delete_all
|
||||
end
|
||||
end
|
||||
|
|
|
@ -59,6 +59,8 @@ class ReservedDomain < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def remove_data
|
||||
next if Domain.where(name: name).any?
|
||||
|
||||
Whois::Record.where(name: name).delete_all
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue