mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
Add validations to epp users
This commit is contained in:
parent
38edcded92
commit
0a3e631d84
6 changed files with 26 additions and 10 deletions
|
@ -3,6 +3,9 @@ class EppUser < ActiveRecord::Base
|
|||
belongs_to :registrar
|
||||
has_many :contacts
|
||||
|
||||
validates :username, :password, :registrar, presence: true
|
||||
validates :username, uniqueness: true
|
||||
|
||||
attr_accessor :registrar_typeahead
|
||||
|
||||
def registrar_typeahead
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue