notebook/app/models/api_request.rb
Andrew Brown 861bdadff4 progress
2020-09-14 16:30:30 -07:00

8 lines
260 B
Ruby

class ApiRequest < ApplicationRecord
belongs_to :application_integration, optional: true
belongs_to :integration_authorization, optional: true
scope :successful, -> { where(result: 'success') }
scope :errored, -> { where(result: 'error') }
end