mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
15 lines
455 B
Ruby
15 lines
455 B
Ruby
class Setting < ActiveRecord::Base
|
|
belongs_to :setting_group
|
|
has_many :domain_statuses
|
|
has_many :domains, through: :domain_statuses
|
|
validates :code, uniqueness: { scope: :setting_group_id }
|
|
|
|
#dnskeys
|
|
DS_ALGORITHM = 'ds_algorithm'
|
|
ALLOW_DS_DATA = 'allow_ds_data'
|
|
ALLOW_DS_DATA_WITH_KEYS = 'allow_ds_data_with_keys'
|
|
ALLOW_KEY_DATA = 'allow_key_data'
|
|
DNSKEYS_MAX_COUNT = 'dnskeys_max_count'
|
|
DNSKEYS_MIN_COUNT = 'dnskeys_min_count'
|
|
|
|
end
|