mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Multiple users
This commit is contained in:
parent
66d7d80bcc
commit
e945bcf1f1
2 changed files with 27 additions and 13 deletions
|
@ -3,7 +3,7 @@ module Legacy
|
|||
self.table_name = :registrar
|
||||
|
||||
has_many :invoices, foreign_key: :registrarid
|
||||
has_one :acl, foreign_key: :registrarid, class_name: "Legacy::RegistrarAcl"
|
||||
has_many :acl, foreign_key: :registrarid, class_name: "Legacy::RegistrarAcl"
|
||||
|
||||
def account_balance
|
||||
invoices.sum(:credit)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue