mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
parent
d8118878b1
commit
d4176b6979
5 changed files with 0 additions and 41 deletions
|
@ -215,10 +215,6 @@ class Contact < ActiveRecord::Base
|
|||
STDOUT << "#{Time.zone.now.utc} - Successfully destroyed #{counter} orphaned contacts\n" unless Rails.env.test?
|
||||
end
|
||||
|
||||
def privs
|
||||
where("ident_type = '#{PRIV}'")
|
||||
end
|
||||
|
||||
def admin_statuses
|
||||
[
|
||||
SERVER_UPDATE_PROHIBITED,
|
||||
|
|
|
@ -9,7 +9,6 @@ class Registrar < ActiveRecord::Base
|
|||
has_many :accounts
|
||||
has_many :nameservers, through: :domains
|
||||
has_many :whois_records
|
||||
has_many :priv_contacts, -> { privs }, class_name: 'Contact'
|
||||
has_many :white_ips, dependent: :destroy
|
||||
|
||||
delegate :balance, to: :cash_account, allow_nil: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue