mirror of
https://github.com/internetee/registry.git
synced 2025-07-19 17:25:57 +02:00
Add form for adding zone #2806
This commit is contained in:
parent
1fe8bd3f46
commit
44b2d383b1
10 changed files with 163 additions and 67 deletions
|
@ -2,6 +2,7 @@ class ZonefileSetting < ActiveRecord::Base
|
|||
include Versions # version/zonefile_setting_version.rb
|
||||
validates :origin, :ttl, :refresh, :retry, :expire, :minimum_ttl, :email, presence: true
|
||||
validates :ttl, :refresh, :retry, :expire, :minimum_ttl, numericality: { only_integer: true }
|
||||
validates :origin, uniqueness: true
|
||||
|
||||
def self.generate_zonefiles
|
||||
pluck(:origin).each do |origin|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue