0
0
Fork 0

Add basic logging of who resolved report

This commit is contained in:
Eugen Rochko 2017-04-03 19:27:30 +02:00
parent 71458dc6df
commit 68f829e11c
6 changed files with 26 additions and 13 deletions

View file

@ -3,6 +3,7 @@
class Report < ApplicationRecord
belongs_to :account
belongs_to :target_account, class_name: 'Account'
belongs_to :action_taken_by_account, class_name: 'Account'
scope :unresolved, -> { where(action_taken: false) }
scope :resolved, -> { where(action_taken: true) }