mirror of
https://github.com/internetee/registry.git
synced 2025-05-28 15:19:55 +02:00
18 lines
547 B
Ruby
18 lines
547 B
Ruby
class DomainTransfer < ActiveRecord::Base
|
|
belongs_to :domain
|
|
|
|
belongs_to :transfer_from, class_name: 'Registrar'
|
|
belongs_to :transfer_to, class_name: 'Registrar'
|
|
|
|
PENDING = 'pending'
|
|
CLIENT_APPROVED = 'clientApproved'
|
|
CLIENT_CANCELLED = 'clientCancelled'
|
|
CLIENT_REJECTED = 'clientRejected'
|
|
SERVER_APPROVED = 'serverApproved'
|
|
SERVER_CANCELLED = 'serverCancelled'
|
|
|
|
def transfer_confirm_time
|
|
wait_time = SettingGroup.domain_general.setting(:transfer_wait_time).value.to_i
|
|
transfer_requested_at + wait_time.hours
|
|
end
|
|
end
|