mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Add feature tests for zonefile settings #2806
This commit is contained in:
parent
57aa65263a
commit
e8e730a6e1
4 changed files with 84 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
class ZonefileSetting < ActiveRecord::Base
|
||||
include Versions # version/zonefile_setting_version.rb
|
||||
validates :origin, :ttl, :refresh, :retry, :expire, :minimum_ttl, :email, presence: true
|
||||
validates :origin, :ttl, :refresh, :retry, :expire, :minimum_ttl, :email, :master_nameserver, presence: true
|
||||
validates :ttl, :refresh, :retry, :expire, :minimum_ttl, numericality: { only_integer: true }
|
||||
validates :origin, uniqueness: true
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue