Improve Price - AccountActivity model relation

#475
This commit is contained in:
Artur Beljajev 2017-05-07 00:23:40 +03:00
parent 3afd542b1a
commit ae64c7cbed
3 changed files with 16 additions and 2 deletions

View file

@ -2,10 +2,10 @@ require 'csv'
class AccountActivity < ActiveRecord::Base
include Versions
belongs_to :account
belongs_to :account, required: true
belongs_to :bank_transaction
belongs_to :invoice
belongs_to :price, class_name: 'Billing::Price'
CREATE = 'create'
RENEW = 'renew'