mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +02:00
Create scaffold for domain disputes
This commit is contained in:
parent
23642355bf
commit
7a7b2f9881
13 changed files with 238 additions and 1 deletions
|
@ -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
5
app/models/dispute.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue