mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
11 lines
192 B
Ruby
11 lines
192 B
Ruby
module Legacy
|
|
class Registrar < Db
|
|
self.table_name = :registrar
|
|
|
|
has_many :invoices, foreign_key: :registrarid
|
|
|
|
def account_balance
|
|
invoices.sum(:credit)
|
|
end
|
|
end
|
|
end
|