mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 02:09:39 +02:00
Add day support to period in schema #2660
This commit is contained in:
parent
1fde3884bd
commit
bd53db2040
2 changed files with 4 additions and 3 deletions
|
@ -250,7 +250,7 @@ class Domain < ActiveRecord::Base
|
|||
def validate_period
|
||||
return unless period.present?
|
||||
if period_unit == 'd'
|
||||
valid_values = %w(365 366 710 712 1065 1068)
|
||||
valid_values = %w(365 730 1095)
|
||||
elsif period_unit == 'm'
|
||||
valid_values = %w(12 24 36)
|
||||
else
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
<simpleType name="pLimitType">
|
||||
<restriction base="unsignedShort">
|
||||
<minInclusive value="1"/>
|
||||
<maxInclusive value="99"/>
|
||||
<maxInclusive value="1095"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
|
||||
|
@ -72,6 +72,7 @@
|
|||
<restriction base="token">
|
||||
<enumeration value="y"/>
|
||||
<enumeration value="m"/>
|
||||
<enumeration value="d"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue