mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
implement mechanism of save statuses for force delete and lock
This commit is contained in:
parent
ec90722bf0
commit
96bc237484
9 changed files with 142 additions and 23 deletions
|
@ -6,6 +6,7 @@ module Domains
|
|||
DomainStatus::SERVER_TRANSFER_PROHIBITED].freeze
|
||||
|
||||
def execute
|
||||
domain.force_delete_domain_statuses_history = domain.statuses
|
||||
domain.statuses_before_force_delete = domain.statuses
|
||||
domain.statuses |= STATUSES_TO_SET
|
||||
domain.save(validate: false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue