0
0
Fork 0

Adding POST /api/v1/reports API, and a UI for submitting reports

This commit is contained in:
Eugen Rochko 2017-02-14 20:59:26 +01:00
parent 40a4053732
commit 3b81baaaaf
26 changed files with 480 additions and 10 deletions

9
app/models/report.rb Normal file
View file

@ -0,0 +1,9 @@
# frozen_string_literal: true
class Report < ApplicationRecord
belongs_to :account
belongs_to :target_account, class_name: 'Account'
scope :unresolved, -> { where(action_taken: false) }
scope :resolved, -> { where(action_taken: true) }
end