Transfer refactor

This commit is contained in:
Martin Lensment 2014-08-28 12:39:23 +03:00
parent 611130addc
commit ad03165546
13 changed files with 172 additions and 18 deletions

View file

@ -0,0 +1,13 @@
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'
end