Create scaffold for domain disputes

This commit is contained in:
Karl Erik Õunapuu 2020-04-22 11:00:06 +03:00
parent 23642355bf
commit 7a7b2f9881
13 changed files with 238 additions and 1 deletions

View file

@ -100,6 +100,7 @@ class Ability
can :manage, Invoice
can :manage, WhiteIp
can :manage, AccountActivity
can :manage, Dispute
can :read, ApiLog::EppLog
can :read, ApiLog::ReppLog
can :update, :pending

5
app/models/dispute.rb Normal file
View file

@ -0,0 +1,5 @@
class Dispute < ApplicationRecord
validates :domain_name, :password, :starts_at, :expires_at, :comment,
presence: true
validates_uniqueness_of :domain_name, case_sensitive: true
end