mirror of
https://github.com/internetee/registry.git
synced 2025-07-13 22:45:06 +02:00
Add basic keyrelay command, tests
This commit is contained in:
parent
1f5efa78ac
commit
ec721b69c0
10 changed files with 133 additions and 5 deletions
|
@ -29,6 +29,9 @@ class Domain < ActiveRecord::Base
|
|||
has_many :domain_transfers, dependent: :delete_all
|
||||
|
||||
has_many :dnskeys, dependent: :delete_all
|
||||
|
||||
has_many :keyrelays
|
||||
|
||||
accepts_nested_attributes_for :dnskeys, allow_destroy: true,
|
||||
reject_if: proc { |attrs| attrs[:public_key].blank? }
|
||||
|
||||
|
|
6
app/models/keyrelay.rb
Normal file
6
app/models/keyrelay.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
class Keyrelay < ActiveRecord::Base
|
||||
belongs_to :domain
|
||||
|
||||
belongs_to :requester, class_name: 'Registrar'
|
||||
belongs_to :accepter, class_name: 'Registrar'
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue