mirror of
https://github.com/internetee/registry.git
synced 2025-08-16 22:43:50 +02:00
Domain statuses import
This commit is contained in:
parent
888d38486f
commit
b11c6cbc7c
8 changed files with 111 additions and 27 deletions
|
@ -2,8 +2,32 @@ module Legacy
|
|||
class ObjectState < Db
|
||||
self.table_name = :object_state
|
||||
|
||||
belongs_to :enum_object_state, foreign_key: :state_id
|
||||
def name
|
||||
map = {
|
||||
2 => "serverRenewProhibited",
|
||||
5 => "serverOutzoneManual",
|
||||
6 => "serverInzoneManual",
|
||||
7 => "serverBlocked",
|
||||
8 => "expirationWarning",
|
||||
9 => "expired",
|
||||
10 => "unguarded",
|
||||
11 => "validationWarning1",
|
||||
12 => "validationWarning2",
|
||||
13 => "notValidated",
|
||||
14 => "nssetMissing",
|
||||
15 => "outzone",
|
||||
18 => "serverRegistrantChangeProhibited",
|
||||
19 => "deleteWarning",
|
||||
20 => "outzoneUnguarded",
|
||||
1 => "serverDeleteProhibited",
|
||||
3 => "serverTransferProhibited",
|
||||
4 => "serverUpdateProhibited",
|
||||
16 => "linked",
|
||||
17 => "deleteCandidate",
|
||||
21 => "forceDelete"
|
||||
}
|
||||
|
||||
delegate :name, to: :enum_object_state, prefix: false, allow_nil: true
|
||||
map[state_id]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue