mirror of
https://github.com/internetee/registry.git
synced 2025-07-14 06:55:11 +02:00
Merge branch '105046446-users_import' into staging
This commit is contained in:
commit
168efc98fa
6 changed files with 185 additions and 1096 deletions
|
@ -3,6 +3,7 @@ module Legacy
|
|||
self.table_name = :registrar
|
||||
|
||||
has_many :invoices, foreign_key: :registrarid
|
||||
has_one :acl, foreign_key: :registrarid, class_name: "Legacy::RegistrarAcl"
|
||||
|
||||
def account_balance
|
||||
invoices.sum(:credit)
|
||||
|
|
5
app/models/legacy/registrar_acl.rb
Normal file
5
app/models/legacy/registrar_acl.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
module Legacy
|
||||
class RegistrarAcl < Db
|
||||
self.table_name = :registraracl
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue