mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
111396946-validates
This commit is contained in:
parent
2ab5d8500a
commit
f31db65d2c
6 changed files with 20 additions and 7 deletions
|
@ -3,6 +3,9 @@ class ReservedDomain < ActiveRecord::Base
|
|||
before_save :fill_empty_passwords
|
||||
before_save :generate_data
|
||||
before_destroy :remove_data
|
||||
validates :name, domain_name: true, uniqueness: true
|
||||
|
||||
|
||||
|
||||
|
||||
class << self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue