Merge branch '105046446-users_import' into staging

This commit is contained in:
Stas 2015-10-30 18:10:58 +02:00
commit 168efc98fa
6 changed files with 185 additions and 1096 deletions

View file

@ -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)

View file

@ -0,0 +1,5 @@
module Legacy
class RegistrarAcl < Db
self.table_name = :registraracl
end
end