Move statuses to domain #2623

This commit is contained in:
Martin Lensment 2015-06-15 12:57:57 +03:00
parent 0d0fd3407d
commit 50346c80c8
8 changed files with 78 additions and 45 deletions

View file

@ -439,8 +439,8 @@ class Epp::Domain < Domain
self.period = period
self.period_unit = unit
domain_statuses.where(value: DomainStatus::SERVER_HOLD).destroy_all
domain_statuses.where(value: DomainStatus::EXPIRED).destroy_all
statuses.delete(DomainStatus::SERVER_HOLD)
statuses.delete(DomainStatus::EXPIRED)
save
end